Formatting...
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Apr 2018 10:52:14 +0200
changeset 48 e6dcf3ca56d2
parent 47 3bc69e21aeb0
child 51 3881fc92a30a
Formatting...
src/pyams_alchemy/zmi/engine.py
--- a/src/pyams_alchemy/zmi/engine.py	Wed Apr 11 10:51:39 2018 +0200
+++ b/src/pyams_alchemy/zmi/engine.py	Wed Apr 11 10:52:14 2018 +0200
@@ -218,8 +218,10 @@
     @property
     def data_attributes(self):
         attrs = super(AlchemyEngineTestResults, self).data_attributes
-        attrs['table'] = {'data-ams-datatable-global-filter': 'false',
-                          'data-ams-datatable-pagination-size': 'false'}
+        attrs['table'] = {
+            'data-ams-datatable-global-filter': 'false',
+            'data-ams-datatable-pagination-size': 'false'
+        }
         return attrs
 
     def initColumns(self):
@@ -245,8 +247,10 @@
     def get_ajax_output(self, changes):
         result = AlchemyEngineTestResults(self.context, self.request, changes)
         result.update()
-        return {'status': 'success',
-                'content': {
-                    'html': result.render()
-                },
-                'close_form': False}
+        return {
+            'status': 'success',
+            'content': {
+                'html': result.render()
+            },
+            'close_form': False
+        }