Formatting...
--- 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}<br />{1}'.format(settings, arguments)},
- 'close_form': False}
+ return {
+ 'status': 'success',
+ 'content': {'html': '{0}<br />{1}'.format(settings, arguments)},
+ 'close_form': False
+ }
else:
typ, value, tb = arguments
message = 'An error occurred: {type}<br />{message}'.format(type=typ,
message='<br />'.join(
traceback.format_exception(typ, value, tb)))
- return {'status': 'info',
- 'content': {'html': '{0}<br />{1}'.format(settings, message)},
- 'close_form': False}
+ return {
+ 'status': 'info',
+ 'content': {'html': '{0}<br />{1}'.format(settings, message)},
+ 'close_form': False
+ }