* DataLineError
* TooManyColsError
'''
- def __init__(self, e, lineno = '', descr='', detail='', data = ''):
+ def __init__(self, e, lineno='', descr='', detail='', data=''):
super(UploadError, self).__init__()
self.lineno = lineno
self.e = e
registry = self.uh.request.registry
try:
conn = psycopg2.connect(
- database = self.db,
- user = self.user,
- password = self.password,
- host = registry.settings['pg_host'],
- port = registry.settings['pg_port'])
+ database=self.db,
+ user=self.user,
+ password=self.password,
+ host=registry.settings['pg_host'],
+ port=registry.settings['pg_port'])
except psycopg2.OperationalError:
errors = [self.authfailerror_factory()]
havecreds = False