+ scope isolé.
[Plinn.git] / skins / photo_theme / validatePrivateAccess.py
1 ##parameters=**kw
2 kg = lambda name : kw.get(name,'').strip()
3
4 weddingId = kg('wedding_id')
5 if not weddingId :
6 return True
7
8 else :
9 password = kg('wedding_password')
10 confirm = kg('wedding_password_confirm')
11 memberId = kg('member_id')
12 msg = context.grantAccess(context, weddingId, password, confirm, memberId)
13 if msg :
14 return context.setStatus(False, msg)
15 else :
16 return True