web.form.Form(web.form.Textbox('username', description= _('Username (3
to 60 alfanumeric chars)')), web.form.Password('password', descriptio
n= _('Password (7 or more characters)')), web.form.Password('password2
', description= _('Repeat Password')), web.form.Textbox('email', descr
iption= _('Email')), web.form.Button('submit', type= 'submit', value=
_('Register')), validators= [web.form.Validator(_('Passwords did\'t ma
tch'), lambda i: i.password== i.password2), web.form.Validator(_('Pass
word shorter than 7 characters'), lambda i: len(i.password) >= 7), web
...
|