Formatting...
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Apr 2018 10:50:38 +0200
changeset 167 527542e50a28
parent 166 b4d5a6a883c0
child 168 819db271bc1f
Formatting...
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}<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
+            }