Skip to content

Commit

Permalink
renamed import helpers->h
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 24, 2012
1 parent 2792859 commit d9554bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/controllers/package.py
Expand Up @@ -30,7 +30,7 @@
import ckan.rating
import ckan.misc
import ckan.lib.accept as accept
import ckan.lib.helpers as helpers
import ckan.lib.helpers as h
from home import CACHE_PARAMETERS

from ckan.lib.plugins import lookup_package_plugin
Expand Down Expand Up @@ -1337,7 +1337,7 @@ def resource_datapreview(self, id, resource_id):
c.package = get_action('package_show')(context, {'id': id})

data_dict = {'resource': c.resource, 'package': c.package}
data_dict = helpers._add_whether_on_same_domain(data_dict)
data_dict = h._add_whether_on_same_domain(data_dict)

plugins = p.PluginImplementations(p.IResourcePreview)
plugins_that_can_preview = [plugin for plugin in plugins if plugin.can_preview(data_dict)]
Expand Down

0 comments on commit d9554bb

Please sign in to comment.