6f7926611c2c225ad62cfe9accc7b54f1c645105
[Plinn.git] / skins / control / append_groups_in_group.py
1 ##parameters=groupId, append_groups=[], ajax='', REQUEST=None
2
3 gtool = context.portal_groups
4 group = gtool.getGroupById(groupId)
5
6 for id in append_groups :
7 group.addGroup(id)
8
9 if REQUEST is not None :
10 from ZTUtils import make_query as mq
11 url = context.portal_url()
12 red = REQUEST.RESPONSE.redirect
13 return red('%s/groups_members?%s#assign_groups' % (url, mq(group=groupId, ajax=ajax)))