_DescriptorEvent

class Cauldron.ext.declarative.events._DescriptorEvent(name, replace_method=False)[source] [edit on github]

Bases: object

Manage events attached to a keyword descriptor.

Methods Summary

__call__(func) Use the event as a descriptor.
listen(func) Listen to a function.
propagate(instance, keyword, *args, **kwargs) Propagate a listener event through to the keyword.

Methods Documentation

__call__(func)[source] [edit on github]

Use the event as a descriptor.

listen(func)[source] [edit on github]

Listen to a function.

propagate(instance, keyword, *args, **kwargs)[source] [edit on github]

Propagate a listener event through to the keyword.