# HG changeset patch # User Thierry Florac # Date 1523436638 -7200 # Node ID 527542e50a28db60e98e675db30134765cb55a28 # Parent b4d5a6a883c0dd826a2b277aebc2ce2f83f56bae Formatting... diff -r b4d5a6a883c0 -r 527542e50a28 src/pyams_utils/zmi/zeo.py --- a/src/pyams_utils/zmi/zeo.py Tue Apr 10 14:45:34 2018 +0200 +++ b/src/pyams_utils/zmi/zeo.py Wed Apr 11 10:50:38 2018 +0200 @@ -220,14 +220,18 @@ settings = '{0}\n\n'.format(pprint.pformat(self.context.get_settings())) status, arguments = changes if status == 200: - return {'status': 'success', - 'content': {'html': '{0}
{1}'.format(settings, arguments)}, - 'close_form': False} + return { + 'status': 'success', + 'content': {'html': '{0}
{1}'.format(settings, arguments)}, + 'close_form': False + } else: typ, value, tb = arguments message = 'An error occurred: {type}
{message}'.format(type=typ, message='
'.join( traceback.format_exception(typ, value, tb))) - return {'status': 'info', - 'content': {'html': '{0}
{1}'.format(settings, message)}, - 'close_form': False} + return { + 'status': 'info', + 'content': {'html': '{0}
{1}'.format(settings, message)}, + 'close_form': False + }