def handle_action(self, action_name, *args): action_type = Action.by_name(action_name) self.api.run_action(action_type, *args)