##parameters=**kw
from Products.CMFCore.utils import getToolByName
-from Products.realis.utils import translate
+from Products.photoprint.utils import translate
from Products.CMFDefault.utils import translate as cmf_translate
rtool = getToolByName(context, 'portal_registration')
ptool = getToolByName(context, 'portal_properties')
, ('billing_zipcode', _('Please enter zip code.'))
, ('country', _('Please enter a country.'))
, ('phone', _('Please enter a phone.'))
- , ('accept_gcs', _('Please accept general conditions of sales.'))
]
for name, failMessage in mandatoryFields :
,'billing_city' : kg('billing_city')
,'billing_zipcode' : kg('billing_zipcode')
,'country' : kg('country')
- ,'phone' : kg('phone')
- ,'accept_gcs' : kg('accep_gcs')} )
+ ,'phone' : kg('phone')} )
except ValueError, errmsg:
return context.setStatus(False, _(errmsg))