7fc653034a52f2c648204651024b7df165147c2a
2 from Products
.photoprint
.utils
import grantAccess
3 kg
= lambda name
: kw
.get(name
,'').strip()
5 collectionId
= kg('collection_id')
10 password
= kg('collection_password')
11 confirm
= kg('collection_password_confirm')
12 memberId
= kg('member_id')
13 msg
= grantAccess(collectionId
, password
, confirm
, memberId
)
15 return context
.setStatus(False, msg
)