Class that allows each callback function to be registered by
specifying it in the string format ("module.function") or in
callable reference format (reference to function itself). ValueError is
raised if the same function is registered twice and when attempting to
remove a function that is no longer registered. Ev:63303
|
__init__(self,
name,
c_add_func,
c_remove_func) |
|
|
|
invoke(self,
*args)
Invoke callbacks specified as callable references |
|
|
|
invokeJobIncorporation(self,
*args)
We need a special invoke method for job incorporation callbacks as
they return values which we need to test. |
|
|
|
add(self,
callback_func)
Add a callback (callable reference or string format) |
|
|
|
remove(self,
callback_func)
Remove a callback (callable reference or string format) |
|
|