Ajout du type correct même si touche entrée.
[Plinn.git] / skins / control / delete_members.py
1 ##parameters=memberIds=[], ajax=''
2 if memberIds :
3 context.portal_membership.removeMembers(memberIds)
4 psm = len(memberIds) == 1 and 'Member deleted.' or 'Members deleted.'
5 else :
6 psm = 'Please select one or more members.'
7
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)))