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
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: