--- 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
+ }