webthing/thing.py
def get_action(self, action_name, action_id):
        """
        Get an action.

        action_name -- name of the action
        action_id -- ID of the action

        Returns the requested action if found, else None.
        """
        if action_name not in self.actions:
            return None

        for action in self.actions[action_name]:
            if action.id == action_id:
                return action

        return None
def get_action(self, action_name, action_id):
        if action_name not in self.actions:
            return None

        for action in self.actions[action_name]:
            if action.id == action_id:
                return action

        return None
def get_action ( self , action_name , action_id ) : if action_name not in self . actions : return None for action in self . actions [ action_name ] : if action . id == action_id : return action return None
Get an action.

        action_name -- name of the action
        action_id -- ID of the action

        Returns the requested action if found, else None.
Get an action .