Skip to content

Commit

Permalink
Use url_for from toolkit in plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 25, 2012
1 parent c0e6f6c commit 75d9d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/resourceproxy/plugin.py
@@ -1,7 +1,7 @@
from logging import getLogger

import ckan.plugins as p
import ckan.lib.helpers as h
import ckan.plugins.toolkit as toolkit

log = getLogger(__name__)

Expand All @@ -11,7 +11,7 @@ def get_proxified_resource_url(data_dict):
:param data_dict: contains a resource and package dict
:type data_dict: dictionary
'''
url = h.url_for(
url = toolkit.url_for(
action='proxy_resource',
controller='ckanext.resourceproxy.controller:ProxyController',
id=data_dict['package']['name'],
Expand Down

0 comments on commit 75d9d0e

Please sign in to comment.