Base callback. More...
Public Member Functions | |
def | __call__ |
def | __init__ |
def | __str__ |
Base callback.
Base class for callback objects. Callback objects must implement the __call__ method, and receive two values: - A boolean indicating success or failure of the action. - An error message to optionally be printed on failure. None if no message.
Definition at line 104 of file actions.py.
def rtshell.actions.BaseCallback.__init__ | ( | self, | |
args, | |||
kwargs | |||
) |
Reimplemented in rtshell.actions.RequiredActionCB, and rtshell.rtcheck.SystemNotOKCB.
Definition at line 113 of file actions.py.
def rtshell.actions.BaseCallback.__call__ | ( | self, | |
result, | |||
err_msg | |||
) |
Reimplemented in rtshell.actions.RequiredActionCB, and rtshell.rtcheck.SystemNotOKCB.
Definition at line 116 of file actions.py.
def rtshell.actions.BaseCallback.__str__ | ( | self | ) |
Reimplemented in rtshell.actions.RequiredActionCB, and rtshell.rtcheck.SystemNotOKCB.
Definition at line 124 of file actions.py.