atom.delegator module

class atom.delegator.Delegator(delegate)[source]

Bases: Member

A member subclass which delegates all work to a wrapped member.

The only behaviors not delegated are GetAttr and SetAttr. Subclasses should override behavior as needed to suit their needs. In order to change a particular mode, the relevant change method must be called via super(Delegator, …).

add_static_observer(observer)[source]

Add a static observer to the member.

This method also adds the static observer to the delegate.

clone()[source]

Create a clone of the declarative property.

This method also creates a clone of the internal delegate for mode handlers which use the original delegate as the context.

delegate
remove_static_observer(observer)[source]

Remove a static observer from the member.

This method also removes the static observer from the delegate.

set_default_value_mode(mode, context)[source]

Set the default value mode for the member.

This method proxies the change to the delegate member.

set_index(index)[source]

Assign the index to this member.

This method keeps the index of the delegate member in sync.

set_name(name)[source]

Assign the name to this member.

This method keeps the name of the delegate member in sync.

set_post_getattr_mode(mode, context)[source]

Set the post getattr mode for the member.

This method proxies the change to the delegate member.

set_post_setattr_mode(mode, context)[source]

Set the post getattr mode for the member.

This method proxies the change to the delegate member.

set_post_validate_mode(mode, context)[source]

Set the default value mode for the member.

This method proxies the change to the delegate member.

set_validate_mode(mode, context)[source]

Set the default value mode for the member.

This method proxies the change to the delegate member.