diff --git a/ckanext/datastore/plugin.py b/ckanext/datastore/plugin.py index 6e6631af198..f4d53dcb9a8 100644 --- a/ckanext/datastore/plugin.py +++ b/ckanext/datastore/plugin.py @@ -44,7 +44,7 @@ def configure(self, config): import sys if sys.argv[0].split('/')[-1] == 'paster' and 'datastore' in sys.argv[1:]: log.warn('Omitting permission checks because you are ' - 'running paster commands.') + 'running paster commands.') return self.ckan_url = self.config['sqlalchemy.url'] @@ -74,8 +74,8 @@ def configure(self, config): "The DataStore will NOT work and datastore tests will be skipped.") ## Do light wrapping around action function to add datastore_active - ## to resource dict. Not using IAction extension as this prevents other plugins - ## from having a custom resource_read. + ## to resource dict. Not using IAction extension as this prevents + ## other plugins from having a custom resource_read. # Make sure actions are cached resource_show = p.toolkit.get_action('resource_show') @@ -207,9 +207,9 @@ def _create_alias_table(self): def get_actions(self): actions = {'datastore_create': action.datastore_create, - 'datastore_upsert': action.datastore_upsert, - 'datastore_delete': action.datastore_delete, - 'datastore_search': action.datastore_search} + 'datastore_upsert': action.datastore_upsert, + 'datastore_delete': action.datastore_delete, + 'datastore_search': action.datastore_search} if not self.legacy_mode: actions['datastore_search_sql'] = action.datastore_search_sql return actions