signoffs.registry#
Registry is imported from the public API in singoffs.registry
E.g.
from signoffs.registry import register
signoffs.registry#
All Behavioural “Types” are loaded in a global registry to they can be accessed anywhere.
Module Contents#
Functions#
Return a class decorator to register a “Type” for the given (e.g., Signoff or Approval) class with the given id |
Data#
API#
- signoffs.registry.signoffs#
None
Singleton - the Signoff Types registry.
(see persisting_theory.Registry)
- signoffs.registry.approvals#
None
Singleton - the Approval Types registry.
(see persisting_theory.Registry)
- signoffs.registry.register(id, **kwargs)[source]#
Return a class decorator to register a “Type” for the given (e.g., Signoff or Approval) class with the given id
class to be registered MUST have a “register(id, **kwargs)” method The decorator returns the registered class in place of the decorated class
Usage::
@register(id='myapp.approval') class MyApproval(BaseApproval): # ...