# HG changeset patch # User Thierry Florac # Date 1515584672 -3600 # Node ID 77e09352969139695d973d8968e6aa6804c22b9a # Parent 54513667faecf1bdd49313d082212bb52d76ee77 Updated widgets for z3c.form >= 3.6 diff -r 54513667faec -r 77e093529691 src/pyams_gis/widget/area.py --- a/src/pyams_gis/widget/area.py Mon Dec 11 15:26:52 2017 +0100 +++ b/src/pyams_gis/widget/area.py Wed Jan 10 12:44:32 2018 +0100 @@ -56,7 +56,7 @@ def updateWidgets(self, setErrors=True): super(GeoAreaWidget, self).updateWidgets() - widgets = self.widgets + widgets = self.subform.widgets widgets['x1'].input_css_class = 'col-md-2' widgets['y1'].input_css_class = 'col-md-2' widgets['x2'].input_css_class = 'col-md-2' diff -r 54513667faec -r 77e093529691 src/pyams_gis/widget/point.py --- a/src/pyams_gis/widget/point.py Mon Dec 11 15:26:52 2017 +0100 +++ b/src/pyams_gis/widget/point.py Wed Jan 10 12:44:32 2018 +0100 @@ -56,7 +56,7 @@ def updateWidgets(self, setErrors=True): super(GeoPointWidget, self).updateWidgets(setErrors) - widgets = self.widgets + widgets = self.subform.widgets widgets['longitude'].input_css_class = 'col-md-2' widgets['latitude'].input_css_class = 'col-md-2' widgets['longitude'].object_data = {'ams-change-handler': 'PyAMS_GIS.position.changedCoordinate'} @@ -106,7 +106,7 @@ def updateWidgets(self, setErrors=True): super(GeoPointZWidget, self).updateWidgets(setErrors) - widgets = self.widgets + widgets = self.subform.widgets widgets['longitude'].input_css_class = 'col-md-2' widgets['latitude'].input_css_class = 'col-md-2' widgets['altitude'].input_css_class = 'col-md-2' diff -r 54513667faec -r 77e093529691 src/pyams_gis/widget/templates/geoarea-input.pt --- a/src/pyams_gis/widget/templates/geoarea-input.pt Mon Dec 11 15:26:52 2017 +0100 +++ b/src/pyams_gis/widget/templates/geoarea-input.pt Wed Jan 10 12:44:32 2018 +0100 @@ -42,7 +42,7 @@ - + diff -r 54513667faec -r 77e093529691 src/pyams_gis/widget/templates/geopoint-input.pt --- a/src/pyams_gis/widget/templates/geopoint-input.pt Mon Dec 11 15:26:52 2017 +0100 +++ b/src/pyams_gis/widget/templates/geopoint-input.pt Wed Jan 10 12:44:32 2018 +0100 @@ -42,7 +42,7 @@ - +