##parameters=add=''
from Products.CMFCore.utils import getToolByName
-from Products.realis.utils import translate
+from Products.Plinn.utils import translate
from ZTUtils import make_query as mq
_ = lambda msg : translate(msg, context)
ptool = getToolByName(script, 'portal_properties')
if add and \
context.validatePassword(**form) and \
- context.customer_add_control(**form) :
+ context.customer_add_control(**form) and \
+ context.validatePrivateAccess(**form) :
came_from = fg('came_from')
if came_from :
return context.setRedirect( atool, 'user/logged_in'
, 'member_id'
, 'password'
, 'confirm'
- , 'send_password'
+ , 'collection_id'
+ , 'collection_password'
+ , 'collection_password_confirm'
, 'billing_address'
, 'billing_city'
, 'billing_zipcode'
, 'country'
- , 'phone'
- , 'accept_gcs']
+ , 'phone']
for name in continuationFields :