Skip to content

Commit

Permalink
[#560] Pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Mar 6, 2013
1 parent d8f9db9 commit 4d04d93
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ckanext/datastore/plugin.py
Expand Up @@ -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']
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d04d93

Please sign in to comment.