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

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

Returns the requested action if found, else None.