diff options
author | Marian Sigler <m@qjym.de> | 2012-10-06 16:40:24 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-10-06 16:40:35 +0200 |
commit | b52de923cbb794b8dbc4d94c60c38088e26d95b5 (patch) | |
tree | ee2abbf99c8ba4815a1fefcde51f267a3649b81c /forms.py | |
parent | f1683aaf4b02721c26e68723fcbaebb536aac26a (diff) | |
download | web-b52de923cbb794b8dbc4d94c60c38088e26d95b5.tar.gz web-b52de923cbb794b8dbc4d94c60c38088e26d95b5.tar.bz2 web-b52de923cbb794b8dbc4d94c60c38088e26d95b5.zip |
Make external urls always with https
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, |