RegistryMarker¶
-
class
jwst.associations.
RegistryMarker
[source]¶ Bases:
object
Mark rules, callbacks, and module
Methods Summary
callback
(event)Mark object as a callback for an event is_marked
(obj)mark
(obj)Mark that object should be part of the registry rule
(obj)Mark object as rule schema
(filename)Mark a file as a schema source utility
(class_obj)Mark the class as a Utility class Methods Documentation
-
static
callback
(event)[source]¶ Mark object as a callback for an event
Parameters: - event (str) – Event this is a callback for.
- obj (func) – Function, or any callable, to be called when the corresponding event is triggered.
- Modifies –
- -------- –
- _asnreg_role ('callback') – Attributed added to object and set to
rule
- _asnreg_events ([event[, ..]]) – The events this callable object is a callback for.
- _asnreg_mark (True) – Attributed added to object and set to True
Returns: obj – Return object to enable use as a decorator.
Return type:
-
static
mark
(obj)[source]¶ Mark that object should be part of the registry
Parameters: Returns: obj – Return object to enable use as a decorator.
Return type:
-
static