From: Karl O. Pinc Date: Wed, 7 Nov 2018 14:25:07 +0000 (-0600) Subject: Preface all pgwui settings with "pgwui." X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=d123f22841442ee4014eb4e5a58fdcc8a8a25843;p=pgwui_core Preface all pgwui settings with "pgwui." --- diff --git a/src/pgwui_core/core.py b/src/pgwui_core/core.py index fe14ccf..38e69db 100644 --- a/src/pgwui_core/core.py +++ b/src/pgwui_core/core.py @@ -1620,8 +1620,8 @@ class DBConnector(object): database=self.db, user=self.user, password=self.password, - host=registry.settings['pg_host'], - port=registry.settings['pg_port']) + host=registry.settings['pgwui.pg_host'], + port=registry.settings['pgwui.pg_port']) except psycopg2.OperationalError: errors = [self.authfailerror_factory()] havecreds = False @@ -1810,7 +1810,8 @@ class UnsafeUploadEngine(DBConnector): if errors: conn.rollback() else: - if ast.literal_eval(self.uh.request.registry.settings['dry_run']): + if ast.literal_eval( + self.uh.request.registry.settings['pgwui.dry_run']): conn.rollback() errors.append(self.dryrunerror_factory()) else: