Renamed variable
authorThierry Florac <thierry.florac@onf.fr>
Fri, 14 Sep 2018 14:35:26 +0200
changeset 147 5a23b395ccef
parent 146 3cdc2e89fb1c
child 148 85907babe16b
Renamed variable
src/pyams_default_theme/component/paragraph/zmi/map.py
--- a/src/pyams_default_theme/component/paragraph/zmi/map.py	Thu Sep 13 17:20:12 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/zmi/map.py	Fri Sep 14 14:35:26 2018 +0200
@@ -56,12 +56,12 @@
             AdminDialogEditForm.updateActions(self.view)
 
         def updateGroups(self):
-            view = self.view
-            view.add_group(NamedWidgetsGroup(view, 'configuration', view.widgets,
-                                             view.fields.keys(),
+            form = self.view
+            form.add_group(NamedWidgetsGroup(form, 'configuration', form.widgets,
+                                             form.fields.keys(),
                                              legend=_("Don't use default map configuration"),
                                              css_class='inner',
                                              switch=True,
                                              checkbox_switch=True,
                                              checkbox_field=IMapParagraphDefaultRendererSettings['no_use_default_map_configuration']))
-            AdminDialogEditForm.updateGroups(view)
+            AdminDialogEditForm.updateGroups(form)