Skip to content

Commit

Permalink
removed unnecessary toolkit import
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 27, 2012
1 parent 47580bc commit 6d483bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion ckan/lib/helpers.py
Expand Up @@ -40,7 +40,6 @@
import ckan.model as model
import ckan.lib.formatters as formatters
import ckan.plugins as p
import ckan.plugins.toolkit as toolkit

get_available_locales = i18n.get_available_locales
get_locales_dict = i18n.get_locales_dict
Expand Down
3 changes: 1 addition & 2 deletions ckanext/resourceproxy/plugin.py
@@ -1,7 +1,6 @@
from logging import getLogger

import ckan.plugins as p
import ckan.plugins.toolkit as toolkit

log = getLogger(__name__)

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

0 comments on commit 6d483bb

Please sign in to comment.