cowbird.handlers.handler
Attributes
Exceptions
Exception thrown when a handler cannot be instantiated because of a bad configuration. |
Classes
Helper class that provides a standard way to create an ABC using |
Module Contents
- cowbird.handlers.handler.HANDLER_WORKSPACE_DIR_PARAM: AnyHandlerParameter = 'workspace_dir'[source]
- exception cowbird.handlers.handler.HandlerConfigurationException[source]
Bases:
Exception
Exception thrown when a handler cannot be instantiated because of a bad configuration.
Initialize self. See help(type(self)) for accurate signature.
- class cowbird.handlers.handler.Handler(settings: cowbird.typedefs.SettingsType, name: str, **kwargs: Any)[source]
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- Parameters:
settings – Cowbird settings for convenience
name – Handler name
kwargs – The base class handle, but doesn’t require the following variables:
url – Location of the web service represented by the cowbird handler
workspace_dir – Workspace directory
priority – Relative priority between handlers while handling events. Lower value has higher priority, default value is last.
- __slots__[source]
Handler interface used to notify implemented handlers of users/permissions changes.
Todo
At some point we will need a consistency function that goes through all Magpie users and make sure that handlers are up-to-date.
- abstract permission_created(permission: cowbird.permissions_synchronizer.Permission) None [source]
- abstract permission_deleted(permission: cowbird.permissions_synchronizer.Permission) None [source]