Skip to content

Commit

Permalink
resource proxy sets config to indicate that it is active
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 14, 2012
1 parent 8309527 commit 2c22840
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckanext/resourceproxy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class ResourceProxy(p.SingletonPlugin):
- ``IRoutes`` allows to add a route to the proxy action
"""
p.implements(p.IRoutes, inherit=True)
p.implements(p.IConfigurer, inherit=True)

def update_config(self, config):
config['ckan.resource_proxy_enabled'] = True

def before_map(self, m):
m.connect('/dataset/{id}/resource/{resource_id}/proxy',
Expand Down

0 comments on commit 2c22840

Please sign in to comment.