Updated groups management
authorThierry Florac <thierry.florac@onf.fr>
Thu, 03 May 2018 11:49:48 +0200
changeset 123 65b0fdd42ef7
parent 122 f76db17ba710
child 124 9d6720585e2f
Updated groups management
src/pyams_security/zmi/utility.py
--- a/src/pyams_security/zmi/utility.py	Fri Apr 27 10:39:18 2018 +0200
+++ b/src/pyams_security/zmi/utility.py	Thu May 03 11:49:48 2018 +0200
@@ -205,8 +205,7 @@
     def getContent(self):
         return query_utility(ISecurityManager)
 
-    def update(self):
-        super(SecurityManagerEditForm, self).update()
+    def updateGroups(self):
         self.add_group(NamedWidgetsGroup(self, 'social_group', self.widgets,
                                          ('enable_social_login', 'social_users_folder',
                                           'authomatic_secret', 'social_login_use_popup'),
@@ -230,6 +229,7 @@
         plugins_group.label_css_class = 'control-label col-md-4'
         plugins_group.input_css_class = 'col-md-8'
         self.add_group(plugins_group)
+        super(SecurityManagerEditForm, self).updateGroups()
 
 
 @view_config(name='properties.json', context=ISecurityManager, request_type=IPyAMSLayer,