[CMF-checkins] CVS: Products/CMFDefault/skins/control - register.py:1.5
Jens Vagelpohl
jens@zope.com
Wed, 10 Oct 2001 16:04:49 -0400
Update of /cvs-repository/Products/CMFDefault/skins/control
In directory cvs.zope.org:/tmp/cvs-serv18816/CMFDefault/skins/control
Modified Files:
register.py
Log Message:
workaround to make error message show up in the join form, esp. for ZPT
=== Products/CMFDefault/skins/control/register.py 1.4 => 1.5 ===
failMessage = portal_registration.testPasswordValidity(password, confirm)
if failMessage:
+ REQUEST.set( 'error', failMessage )
return context.join_form( context, REQUEST, error=failMessage )
failMessage = portal_registration.testPropertiesValidity(REQUEST)
if failMessage:
+ REQUEST.set( 'error', failMessage )
return context.join_form( context, REQUEST, error=failMessage )
else:
password=REQUEST.get('password') or portal_registration.generatePassword()