Skip to content

Commit

Permalink
Revert "[#1574][s]: Hotfix #2 for text.ckan.net. Can be reverted."
Browse files Browse the repository at this point in the history
This reverts commit b21f4cc.
  • Loading branch information
teajaymars committed Jan 30, 2012
1 parent 71c7d79 commit e7e5c05
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions ckan/config/routing.py
Expand Up @@ -320,10 +320,6 @@ def make_map():
'/api/storage/auth/form/{label:.*}',
controller='ckan.controllers.storage:StorageAPIController',
action='auth_form')
map.connect('storage_api_test',
'/api/storage/test/{label:.*}',
controller='ckan.controllers.storage:StorageAPIController',
action='test')
map.connect('storage_upload', '/storage/upload',
controller='ckan.controllers.storage:StorageController',
action='upload')
Expand Down
14 changes: 0 additions & 14 deletions ckan/controllers/storage.py
Expand Up @@ -397,17 +397,3 @@ def auth_form(self, label):
data = self._get_form_data(label)
return data

@jsonpify
def test(self, label):
'''Provide fields for a form upload to storage including
authentication.
:param label: label.
:return: json-encoded dictionary with action parameter and fields list.
'''
headers = dict(request.params)

data = { 'message': 'hello world', 'headers.keys()': headers.keys(), 'label': label }

return data

0 comments on commit e7e5c05

Please sign in to comment.