aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/forms.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-10 19:53:37 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-10 19:53:37 -0500
commit852d5bb2387706c11925fa0c2abe4a1f34708f16 (patch)
treedf5e6a3108d2ba007112b558ff65bbfabd88020c /mediagoblin/auth/forms.py
parent6b9ee0ca13b99ee20f9d0c680a950c6a7494a5a0 (diff)
parent6d794f268bb1f5d3cc56c5f0dc902571d48ebeac (diff)
downloadmediagoblin-852d5bb2387706c11925fa0c2abe4a1f34708f16.tar.lz
mediagoblin-852d5bb2387706c11925fa0c2abe4a1f34708f16.tar.xz
mediagoblin-852d5bb2387706c11925fa0c2abe4a1f34708f16.zip
Merge branch 'master' into processing
Diffstat (limited to 'mediagoblin/auth/forms.py')
-rw-r--r--mediagoblin/auth/forms.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/mediagoblin/auth/forms.py b/mediagoblin/auth/forms.py
index 7bc0aeb1..917909c5 100644
--- a/mediagoblin/auth/forms.py
+++ b/mediagoblin/auth/forms.py
@@ -16,34 +16,36 @@
import wtforms
+from mediagoblin.util import fake_ugettext_passthrough as _
+
class RegistrationForm(wtforms.Form):
username = wtforms.TextField(
- 'Username',
+ _('Username'),
[wtforms.validators.Required(),
wtforms.validators.Length(min=3, max=30),
wtforms.validators.Regexp(r'^\w+$')])
password = wtforms.PasswordField(
- 'Password',
+ _('Password'),
[wtforms.validators.Required(),
wtforms.validators.Length(min=6, max=30),
wtforms.validators.EqualTo(
'confirm_password',
- 'Passwords must match.')])
+ _('Passwords must match.'))])
confirm_password = wtforms.PasswordField(
- 'Confirm password',
+ _('Confirm password'),
[wtforms.validators.Required()])
email = wtforms.TextField(
- 'Email address',
+ _('Email address'),
[wtforms.validators.Required(),
wtforms.validators.Email()])
class LoginForm(wtforms.Form):
username = wtforms.TextField(
- 'Username',
+ _('Username'),
[wtforms.validators.Required(),
wtforms.validators.Regexp(r'^\w+$')])
password = wtforms.PasswordField(
- 'Password',
+ _('Password'),
[wtforms.validators.Required()])