def _set_action(self, action_resource_type, method, querystring):
    action_set = False
    for (action_in_querystring, action) in ACTION_MAP[action_resource_type][method].items():
        if (action_in_querystring in querystring):
            self.data['Action'] = action
            action_set = True
    if (not action_set):
        self.data['Action'] = ACTION_MAP[action_resource_type][method]['DEFAULT']
def _set_action(self, action_resource_type, method, querystring):
    action_set = False
    for (action_in_querystring, action) in ACTION_MAP[action_resource_type][method].items():
        if (action_in_querystring in querystring):
            self.data['Action'] = action
            action_set = True
    if (not action_set):
        self.data['Action'] = ACTION_MAP[action_resource_type][method]['DEFAULT']