Skip to content

Commit

Permalink
allow old calls to api/rest/package etc
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 1, 2012
1 parent acf9f13 commit 9ecdaea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/controllers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ def action(self, logic_function):
def _get_action_from_map(self, action_map, register, subregister):
# Helper function to get the action function specified in the action map

# TODO enable this test but we may break existing clients :(
# assert (register != 'package') # these should all have been redirected!
# translate old package calls to use dataset
if register == 'package':
register = 'dataset'

action = action_map.get((register, subregister))
if not action:
Expand Down

0 comments on commit 9ecdaea

Please sign in to comment.