betty.props.proxy module

Proxy properties.

class betty.props.proxy.ProxyProp

Bases: Prop, Generic

A property that proxies another property.

__init__(*args: Any, proxied: Prop[OwnerT, GetT, SetT], **kwargs: Any)
delete(owner: OwnerT, /) None

Delete the property value from the owner.

Raises:

NotDeletable

delete_owner(owner: OwnerT, /) None

Delete the property from an owner.

get(owner: OwnerT, /) GetT

Get the property value from the owner.

init_owner(owner: OwnerT, /) None

Initialize the property on an owner.

set(owner: OwnerT, value: SetT, /) None

Set the property value on the owner.

Raises:

NotSettable