1 ##parameters=groupId, append_members=[], ajax='', REQUEST=None
3 groupsTool
= context
.portal_groups
4 group
= groupsTool
.getGroupById(groupId
)
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
)))