0d1a353f569805726ace07a0a06848397f6fe3eb
[Plinn.git] / skins / control / remove_users_in_group.py
1 ##parameters=groupId, remove_members=[], ajax='', REQUEST=None
2 groupsTool = context.portal_groups
3 group = groupsTool.getGroupById(groupId)
4
5 for memberId in remove_members :
6 group.removeMember(memberId)
7 if REQUEST is not None :
8 return context.REQUEST. RESPONSE.redirect('%s/groups_members?group=%s&ajax=%s#assign_members' % (context.portal_url(), groupId, ajax))