Spaces -> tabs
[Plinn.git] / skins / generic / member_properties_form.py
1 ##parameters=memberIds=[], ajax=''
2
3 resp = context.REQUEST.RESPONSE
4 portal_url = context.portal_url()
5 from ZTUtils import make_query as mq
6 msg=''
7
8 if not memberIds :
9 msg = 'Please select a member first.'
10 resp.redirect(portal_url + '/portal_members?%s' % mq(portal_status_message=msg, ajax=ajax))
11 return
12
13 elif len(memberIds) > 1 :
14 msg = 'Warning: you should have selected only one member.'
15
16 return resp.redirect(portal_url + '/portal_members?%s' % mq(member_id=memberIds[0],
17 portal_status_message=msg,
18 macroName='member_properties_form',
19 ajax=ajax))