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)
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)