Added prefix to edit form
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Apr 2018 12:16:45 +0200
changeset 59 a80821967d4f
parent 58 268e1d5eed87
child 60 5f91ad025e46
Added prefix to edit form
src/pyams_content_es/zmi/__init__.py
--- a/src/pyams_content_es/zmi/__init__.py	Wed Mar 28 15:47:15 2018 +0200
+++ b/src/pyams_content_es/zmi/__init__.py	Wed Apr 11 12:16:45 2018 +0200
@@ -43,7 +43,9 @@
                 permission=VIEW_SYSTEM_PERMISSION)
 class ContentIndexerUtilityPropertiesEditForm(AdminDialogEditForm):
     """Content indexer utility properties edit form"""
-    
+
+    prefix = 'indexer_properties.'
+
     @property
     def title(self):
         return self.context.__name__
@@ -127,10 +129,14 @@
     def get_ajax_output(self, changes):
         status, message = changes
         if status == 200:
-            return {'status': 'success',
-                    'content': {'html': message},
-                    'close_form': False}
+            return {
+                'status': 'success',
+                'content': {'html': message},
+                'close_form': False
+            }
         else:
-            return {'status': 'info',
-                    'content': {'html': message},
-                    'close_form': False}
+            return {
+                'status': 'info',
+                'content': {'html': message},
+                'close_form': False
+            }