Updated forms prefix
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Apr 2018 11:05:22 +0200
changeset 36 3ccb1e8d695f
parent 35 39f7e00f9e51
child 37 f8916da0b16b
Updated forms prefix
src/pyams_gis/zmi/layer.py
--- a/src/pyams_gis/zmi/layer.py	Wed Mar 28 15:50:41 2018 +0200
+++ b/src/pyams_gis/zmi/layer.py	Wed Apr 11 11:05:22 2018 +0200
@@ -108,6 +108,8 @@
 class TileLayerEditForm(AdminDialogEditForm):
     """Tile layer edit form"""
 
+    prefix = 'tile_properties.'
+
     @property
     def title(self):
         return II18n(self.context).query_attribute('title', request=self.request)
@@ -185,6 +187,8 @@
 class WMSLayerEditForm(AdminDialogEditForm):
     """WMS layer edit form"""
 
+    prefix = 'wms_properties.'
+
     @property
     def title(self):
         return II18n(self.context).query_attribute('title', request=self.request)
@@ -262,6 +266,8 @@
 class GeoportalLayerEditForm(AdminDialogEditForm):
     """Geoportal layer edit form"""
 
+    prefix = 'geoportal_properties.'
+
     @property
     def title(self):
         return II18n(self.context).query_attribute('title', request=self.request)
@@ -339,6 +345,8 @@
 class EsriFeatureLayerEditForm(AdminDialogEditForm):
     """ESRI feature layer edit form"""
 
+    prefix = 'esri_properties.'
+
     @property
     def title(self):
         return II18n(self.context).query_attribute('title', request=self.request)
@@ -416,6 +424,8 @@
 class GoogleMapLayerEditForm(AdminDialogEditForm):
     """Google Maps layer edit form"""
 
+    prefix = 'google_properties.'
+
     @property
     def title(self):
         return II18n(self.context).query_attribute('title', request=self.request)