webthing/thing.py
def get_action_descriptions(self, action_name=None):
        """
        Get the thing's actions as an array.

        action_name -- Optional action name to get descriptions for

        Returns the action descriptions.
        """
        descriptions = []

        if action_name is None:
            for name in self.actions:
                for action in self.actions[name]:
                    descriptions.append(action.as_action_description())
        elif action_name in self.actions:
            for action in self.actions[action_name]:
                descriptions.append(action.as_action_description())

        return descriptions
def get_action_descriptions(self, action_name=None):
        descriptions = []

        if action_name is None:
            for name in self.actions:
                for action in self.actions[name]:
                    descriptions.append(action.as_action_description())
        elif action_name in self.actions:
            for action in self.actions[action_name]:
                descriptions.append(action.as_action_description())

        return descriptions
def get_action_descriptions ( self , action_name = None ) : descriptions = [ ] if action_name is None : for name in self . actions : for action in self . actions [ name ] : descriptions . append ( action . as_action_description ( ) ) elif action_name in self . actions : for action in self . actions [ action_name ] : descriptions . append ( action . as_action_description ( ) ) return descriptions
Get the thing's actions as an array.

        action_name -- Optional action name to get descriptions for

        Returns the action descriptions.
Get the thing s actions as an array .