Skip to content

Commit

Permalink
Removed action from resource proxy extension
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 3, 2012
1 parent af7716b commit 409d130
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ckanext/resourceproxy/plugin.py
Expand Up @@ -3,8 +3,6 @@
import ckan.plugins as p
import ckan.lib.base as base

import controller

log = getLogger(__name__)


Expand All @@ -29,16 +27,11 @@ class ResourceProxy(p.SingletonPlugin):
This extension implements two interfaces
- ``IRoutes`` allows to add a route to the proxy action
- ``IActions`` allows to add an action for the proxy
"""
p.implements(p.IRoutes, inherit=True)
p.implements(p.IActions)

def before_map(self, m):
m.connect('/dataset/{id}/resource/{resource_id}/proxy',
controller='ckanext.resourceproxy.controller:ProxyController',
action='proxy_resource')
return m

def get_actions(self):
return {'proxy_resource': controller.proxy_resource}

0 comments on commit 409d130

Please sign in to comment.