summaryrefslogtreecommitdiffstats
path: root/forms.py
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-09-28 03:21:13 +0200
committerMarian Sigler <m@qjym.de>2012-09-28 03:21:13 +0200
commitee35835b75119e57dd23f13fba95c02e50125a44 (patch)
treefc99d7f25059e7dde6cfac92d54ec9c038651c56 /forms.py
parent2676e1d7130160673c408987c4aeef83f9f57b6d (diff)
downloadweb-ee35835b75119e57dd23f13fba95c02e50125a44.tar.gz
web-ee35835b75119e57dd23f13fba95c02e50125a44.tar.bz2
web-ee35835b75119e57dd23f13fba95c02e50125a44.zip
Add script to create accounts (for usernames that are in the blacklist)
Diffstat (limited to 'forms.py')
-rw-r--r--forms.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/forms.py b/forms.py
index 063412b..4d57d63 100644
--- a/forms.py
+++ b/forms.py
@@ -24,13 +24,13 @@ class RegisterForm(Form):
raise ValidationError(Markup(u'Dieser Benutzername ist momentan nicht erlaubt. '
u'<a href="%s">Weitere Informationen</a>' % url_for('about')))
- else:
- print 'not in blacklist: %r' % field.data
- else:
- print 'no blacklist'
else:
raise ValidationError(u'Dieser Benutzername ist schon vergeben')
+ def validate_mail(form, field):
+ #TODO
+ pass
+
class RegisterCompleteForm(Form):
password = PasswordField('Passwort', [validators.Required(),