diff options
Diffstat (limited to 'forms.py')
-rw-r--r-- | forms.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- from account import SERVICES, NoSuchUserError -from flask import g, current_app, session, url_for, Markup +from flask import g, current_app, session, Markup from flask.ext.wtf import Form, validators, TextField, PasswordField,\ ValidationError, BooleanField from functools import partial -from utils import _username_re, _username_exclude_re, decrypt_password, NotRegexp +from utils import _username_re, _username_exclude_re, decrypt_password,\ + NotRegexp, url_for username = partial(TextField, 'Benutzername', [validators.Regexp(_username_re, |