--- a/src/pyams_security/zmi/plugin/group.py Wed Apr 11 11:39:16 2018 +0200
+++ b/src/pyams_security/zmi/plugin/group.py Wed Apr 11 11:40:14 2018 +0200
@@ -110,6 +110,8 @@
class GroupsFolderEditForm(AdminDialogEditForm):
"""Groups folder plug-in edit form"""
+ prefix = 'groups_properties.'
+
@property
def title(self):
return self.context.title
@@ -270,15 +272,19 @@
def get_ajax_output(self, changes):
translate = self.request.localizer.translate
- return {'status': 'reload',
- 'location': absolute_url(self.context, self.request, 'search.html'),
- 'message': translate(_("Group was created successfully"))}
+ return {
+ 'status': 'reload',
+ 'location': absolute_url(self.context, self.request, 'search.html'),
+ 'message': translate(_("Group was created successfully"))
+ }
@pagelet_config(name='properties.html', context=ILocalGroup, layer=IPyAMSLayer, permission=VIEW_SYSTEM_PERMISSION)
class LocalGroupEditForm(AdminDialogEditForm):
"""Local group edit form"""
+ prefix = 'group_properties.'
+
@property
def title(self):
return self.context.title
@@ -306,7 +312,9 @@
def get_ajax_output(self, changes):
if 'title' in changes.get(ILocalGroup, ()):
- return {'status': 'reload',
- 'location': absolute_url(self.context.__parent__, self.request, 'search.html')}
+ return {
+ 'status': 'reload',
+ 'location': absolute_url(self.context.__parent__, self.request, 'search.html')
+ }
else:
return super(LocalGroupAJAXEditForm, self).get_ajax_output(changes)