Produces the dict pyramid will use to render the form.
'''
response = super().write(result, errors)
- if response.get('havecreds', False):
+ havecreds = self.uh.session.get('havecreds', False)
+ response.update({'havecreds': havecreds})
+ if havecreds:
response['user'] = self['user']
else:
# We don't know if the credentials are good or
Reserved keys:
havecreds Boolean. Supplied credentials can connect to db.
'''
- return {'havecreds': False}
+ return {'havecreds': self.uh.session.get('havecreds', False)}
def nodberror_factory(self):
return core_ex.NoDBError('No database name supplied')
havecreds = True
errors = self.call_alter_db(func, conn)
- response.update({'havecreds': havecreds
- })
+ self.uh.session.update({'havecreds': havecreds})
return (errors, response)
def read_uh(self):