Skip to content

Commit

Permalink
remove unused api variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 5, 2012
1 parent a475571 commit 5090625
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions ckan/logic/action/create.py
Expand Up @@ -307,8 +307,6 @@ def user_create(context, data_dict):

def package_create_rest(context, data_dict):

api = context.get('api_version') or '1'

check_access('package_create_rest', context, data_dict)

dictized_package = model_save.package_api_to_dict(data_dict, context)
Expand All @@ -324,8 +322,6 @@ def package_create_rest(context, data_dict):

def group_create_rest(context, data_dict):

api = context.get('api_version') or '1'

check_access('group_create_rest', context, data_dict)

dictized_group = model_save.group_api_to_dict(data_dict, context)
Expand Down
3 changes: 0 additions & 3 deletions ckan/logic/action/get.py
Expand Up @@ -509,7 +509,6 @@ def package_show_rest(context, data_dict):

logic.get_action('package_show')(context, data_dict)

api = context.get('api_version') or '1'
pkg = context['package']

package_dict = model_dictize.package_to_api(pkg, context)
Expand All @@ -521,7 +520,6 @@ def group_show_rest(context, data_dict):
check_access('group_show_rest',context, data_dict)

group_show(context, data_dict)
api = context.get('api_version') or '1'
group = context['group']

group_dict = model_dictize.group_to_api(group, context)
Expand All @@ -533,7 +531,6 @@ def tag_show_rest(context, data_dict):
check_access('tag_show_rest',context, data_dict)

tag_show(context, data_dict)
api = context.get('api_version') or '1'
tag = context['tag']

tag_dict = model_dictize.tag_to_api(tag, context)
Expand Down
2 changes: 0 additions & 2 deletions ckan/logic/action/update.py
Expand Up @@ -511,7 +511,6 @@ def package_update_rest(context, data_dict):
model = context['model']
id = data_dict.get("id")
request_id = context['id']
api = context.get('api_version') or '1'
pkg = model.Package.get(request_id)

if not pkg:
Expand Down Expand Up @@ -542,7 +541,6 @@ def group_update_rest(context, data_dict):

model = context['model']
id = data_dict["id"]
api = context.get('api_version') or '1'
group = model.Group.get(id)
context["group"] = group
context["allow_partial_update"] = True
Expand Down

0 comments on commit 5090625

Please sign in to comment.