Produces the dict pyramid will use to render the form.
'''
response = super(CredsLoadedForm, self).write(result, errors)
- if ('havecreds' not in response or
- ('havecreds' in response and not response['havecreds'])):
+ if ('havecreds' not in response
+ or ('havecreds' in response and not response['havecreds'])):
# We don't know if the credentials are good or
# we know they are bad. Keep them out of the session.
response['user'] = ''
if hasattr(self, 'data'):
response['lines'] = self.data.lineno - 1
response['e_cnt'] = len(errors)
- response['db_changed'] = (not response['errors'] and
- self.uf['action'] != '')
+ response['db_changed'] = (not response['errors']
+ and self.uf['action'] != '')
return response