Removing description field cruft that mostly existed for testing purposes. :)

This commit is contained in:
Christopher Allan Webber 2011-09-04 22:26:57 -05:00
parent b998d80be4
commit 6be33a7780

View File

@ -24,18 +24,14 @@ class RegistrationForm(wtforms.Form):
_('Username'), _('Username'),
[wtforms.validators.Required(), [wtforms.validators.Required(),
wtforms.validators.Length(min=3, max=30), wtforms.validators.Length(min=3, max=30),
wtforms.validators.Regexp(r'^\w+$')], wtforms.validators.Regexp(r'^\w+$')])
description=_(
u"This is the name other users will identify you with."))
password = wtforms.PasswordField( password = wtforms.PasswordField(
_('Password'), _('Password'),
[wtforms.validators.Required(), [wtforms.validators.Required(),
wtforms.validators.Length(min=6, max=30), wtforms.validators.Length(min=6, max=30),
wtforms.validators.EqualTo( wtforms.validators.EqualTo(
'confirm_password', 'confirm_password',
_('Passwords must match.'))], _('Passwords must match.'))])
description=_(
u"Try to use a strong password!"))
confirm_password = wtforms.PasswordField( confirm_password = wtforms.PasswordField(
_('Confirm password'), _('Confirm password'),
[wtforms.validators.Required()], [wtforms.validators.Required()],
@ -44,9 +40,7 @@ class RegistrationForm(wtforms.Form):
email = wtforms.TextField( email = wtforms.TextField(
_('Email address'), _('Email address'),
[wtforms.validators.Required(), [wtforms.validators.Required(),
wtforms.validators.Email()], wtforms.validators.Email()])
description=_(
u"Your email will never be published."))
class LoginForm(wtforms.Form): class LoginForm(wtforms.Form):