e47050ad487265052be38e835607b4f3e38a72ac
1 ##parameters=memberIds=[], ajax=''
3 context
.portal_membership
.removeMembers(memberIds
)
4 psm
= len(memberIds
) == 1 and 'Member deleted.' or 'Members deleted.'
6 psm
= 'Please select one or more members.'
8 from ZTUtils
import make_query
as mq
9 url
= context
.portal_url()
10 red
= context
.REQUEST
.RESPONSE
.redirect
11 return red('%s/portal_members?%s' % (url
, mq(portal_status_message
=psm
, ajax
=ajax
)))