IHM pour édition des indexes délégués à Solr.
[Plinn.git] / skins / control / change_group.py
1 ##parameters=groupId, title='', description='', createSharedFolder=None, ajax='', REQUEST=None
2
3 groupsTool = context.portal_groups
4 wGroup = groupsTool.getGroupById(groupId)
5 wGroup.setGroupProperties({'title' : title, 'description' : description})
6 if createSharedFolder :
7 groupsTool.createGrouparea(groupId)
8
9 if REQUEST is not None :
10 from ZTUtils import make_query as mq
11 url = context.portal_url()
12 red = context.REQUEST. RESPONSE.redirect
13 return red('%s/group_data?%s' % (url, mq(group=groupId, ajax=ajax, portal_status_message='Group modified.')))