Merge branche doc-dc
authorThierry Florac <thierry.florac@onf.fr>
Thu, 12 Apr 2018 10:06:08 +0200
changeset 51 3881fc92a30a
parent 48 e6dcf3ca56d2 (diff)
parent 50 aedab26ef690 (current diff)
child 52 d078dab8ecd0
Merge branche doc-dc
--- a/buildout.cfg	Mon Apr 09 17:05:53 2018 +0200
+++ b/buildout.cfg	Thu Apr 12 10:06:08 2018 +0200
@@ -71,4 +71,4 @@
 eggs = pyams_alchemy [test]
 
 [versions]
-pyams_alchemy = 0.1.6
+pyams_alchemy = 0.1.7
--- a/setup.py	Mon Apr 09 17:05:53 2018 +0200
+++ b/setup.py	Thu Apr 12 10:06:08 2018 +0200
@@ -22,7 +22,7 @@
 README = os.path.join(DOCS, 'README.txt')
 HISTORY = os.path.join(DOCS, 'HISTORY.txt')
 
-version = '0.1.6'
+version = '0.1.7'
 long_description = open(README).read() + '\n\n' + open(HISTORY).read()
 
 tests_require = []
--- a/src/pyams_alchemy/zmi/engine.py	Mon Apr 09 17:05:53 2018 +0200
+++ b/src/pyams_alchemy/zmi/engine.py	Thu Apr 12 10:06:08 2018 +0200
@@ -106,6 +106,8 @@
 class AlchemyEnginePropertiesEditForm(AdminDialogEditForm):
     """SQLAlchemy engine properties edit form"""
 
+    prefix = 'engine_properties.'
+
     @property
     def title(self):
         translate = self.request.localizer.translate
@@ -216,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):
@@ -243,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
+        }