1 ## Script (Python) "prefs_group_manage"
2 ##bind container=container
6 ##bind subpath=traverse_subpath
10 REQUEST=context.REQUEST
11 groupstool=context.portal_groups
13 groups=[group[len('group_'):]
14 for group in REQUEST.keys()
15 if group.startswith('group_')]
18 roles=REQUEST['group_'+group]
19 groupstool.editGroup(group, roles = roles, REQUEST=context.REQUEST, )
22 delete=REQUEST.get('delete',[])
23 groupstool.removeGroups(delete, REQUEST=context.REQUEST,)
25 portal_status_message="Changes made."
26 return state.set(portal_status_message=portal_status_message)