From 8d3917112382474d2d44900f979fee6ba99b7af7 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Tue, 26 Mar 2013 22:52:58 +0100 Subject: [PATCH] [#642] Add spaces to log messages where they are missing --- ckanext/datastore/plugin.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ckanext/datastore/plugin.py b/ckanext/datastore/plugin.py index d3d5f6e713c..e164deed4a7 100644 --- a/ckanext/datastore/plugin.py +++ b/ckanext/datastore/plugin.py @@ -43,8 +43,8 @@ def configure(self, config): # that we should ignore the following tests. 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.') + log.warn("Omitting permission checks because you are " + "running paster commands.") return self.ckan_url = self.config['sqlalchemy.url'] @@ -68,12 +68,12 @@ def configure(self, config): self._create_alias_table() else: - log.warn("We detected that CKAN is running on a read" + log.warn("We detected that CKAN is running on a read " "only database. Permission checks and the creation " "of _table_metadata are skipped.") else: - log.warn("We detected that you do not use a PostgreSQL" - "database. The DataStore will NOT work and datastore" + log.warn("We detected that you do not use a PostgreSQL " + "database. The DataStore will NOT work and datastore " "tests will be skipped.") ## Do light wrapping around action function to add datastore_active @@ -173,7 +173,7 @@ def _check_read_permissions(self): read_connection.execute(sql) except ProgrammingError, e: if 'permission denied' not in str(e): - log.critical("Possibly unsafe datastore. If '{0}'" + log.critical("Possibly unsafe datastore. If '{0}' " "does not mean 'permission denied', " "you have to double check the permissions " "for the datastore table.".format(e.message))