Beispiel #1
0
    def action_for_name(self, action_name, action_endpoint):
        # type: (Text, Optional[EndpointConfig]) -> Optional[Action]
        """Looks up which action corresponds to this action name."""

        if action_name not in self.action_names:
            self._raise_action_not_found_exception(action_name)

        return action.action_from_name(action_name, action_endpoint,
                                       self.user_actions)
Beispiel #2
0
    def action_for_name(self, action_name, action_endpoint):
        # type: (Text, Optional[EndpointConfig]) -> Optional[Action]
        """Looks up which action corresponds to this action name."""

        if action_name not in self.action_names:
            self._raise_action_not_found_exception(action_name)

        return action.action_from_name(action_name,
                                       action_endpoint,
                                       self.user_actions)