示例#1
0
    def execute(self, action_id, active=None):

        self.logger.debug('Executing action, action_id is %s' % action_id)

        a = self.get_action(action_id)
        if a:
            a.activate()
            self.component_registry.handle(ActionExecuted(action_id, a))
        else:
            self.logger.warning('Unknown action %s' % action_id)
示例#2
0
    def execute(self, action_id, active=None):

        logger.debug("Executing action, action_id is %s" % action_id)

        a = self.get_action(action_id)
        if a:
            a.activate()
            self.event_manager.handle(ActionExecuted(action_id, a))
        else:
            logger.warning("Unknown action %s" % action_id)