def get_module_conditions(handlermodule=None): """ Return the list of conditions a handlermodule provides. :param handlermodule: Identifier of the handler module like "UserNotification" :return: list oft actions """ ret = [] h_obj = get_handler_object(handlermodule) if h_obj: ret = h_obj.conditions return send_result(ret)
def get_module_conditions(handlermodule=None): """ Return the list of conditions a handlermodule provides. :param handlermodule: Identifier of the handler module like "UserNotification" :return: list oft actions """ ret = [] h_obj = get_handler_object(handlermodule) if h_obj: ret = h_obj.conditions return send_result(ret)
def get_module_actions(handlermodule=None): """ Return the list of actions a handlermodule provides. :param handlermodule: Identifier of the handler module like "UserNotification" :return: list oft actions """ ret = [] h_obj = get_handler_object(handlermodule) if h_obj: ret = h_obj.actions g.audit_object.log({"success": True}) return send_result(ret)
def test_02_get_handler_object(self): h_obj = get_handler_object("UserNotification") self.assertEqual(type(h_obj), UserNotificationEventHandler)