1121b73c81d73ba8ce5365de65a82f9ad8b1aaa0
[Plinn.git] / skins / control / append_users_in_group.py
1 ##parameters=groupId, append_members=[], ajax='', REQUEST=None
2
3 groupsTool = context.portal_groups
4 group = groupsTool.getGroupById(groupId)
5
6 for memberId in append_members :
7 group.addMember(memberId)
8 if REQUEST is not None :
9 from ZTUtils import make_query as mq
10 red = REQUEST.RESPONSE.redirect
11 url = context.portal_url()
12 return red('%s/groups_members?%s#assign_members' % (url, mq(group=groupId, ajax=ajax)))