Added form prefix
authorThierry Florac <thierry.florac@onf.fr>
Tue, 10 Apr 2018 14:45:34 +0200
changeset 166 b4d5a6a883c0
parent 165 f124b8ffaa50
child 167 527542e50a28
Added form prefix
src/pyams_utils/zmi/timezone.py
src/pyams_utils/zmi/zeo.py
--- a/src/pyams_utils/zmi/timezone.py	Tue Apr 10 14:44:20 2018 +0200
+++ b/src/pyams_utils/zmi/timezone.py	Tue Apr 10 14:45:34 2018 +0200
@@ -35,6 +35,8 @@
 class ServerTimezonePropertiesEditForm(AdminDialogEditForm):
     """Server timezone properties edit form"""
 
+    prefix = 'timezone_properties.'
+
     legend = _("Update server timezone properties")
     fields = field.Fields(IServerTimezone)
     ajax_handler = 'properties.json'
--- a/src/pyams_utils/zmi/zeo.py	Tue Apr 10 14:44:20 2018 +0200
+++ b/src/pyams_utils/zmi/zeo.py	Tue Apr 10 14:45:34 2018 +0200
@@ -117,6 +117,8 @@
 class ZEOConnectionPropertiesEditForm(AdminDialogEditForm):
     """ZEO connection properties edit form"""
 
+    prefix = 'zeo_properties.'
+
     @property
     def title(self):
         translate = self.request.localizer.translate