diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-05-29 22:58:20 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-05-29 22:58:20 +0200 |
commit | b0049442eee94a1636490c091215bd706f819558 (patch) | |
tree | e44b18eddfcc0134ed4fc2b38821740617fac694 /src/web/views/session_mgmt.py | |
parent | Bugfix: it was not possible to delete a user with categories. (diff) | |
download | newspipe-b0049442eee94a1636490c091215bd706f819558.tar.gz newspipe-b0049442eee94a1636490c091215bd706f819558.tar.bz2 newspipe-b0049442eee94a1636490c091215bd706f819558.zip |
Fixed some depreciations with the new version of Flask.
Diffstat (limited to 'src/web/views/session_mgmt.py')
-rw-r--r-- | src/web/views/session_mgmt.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web/views/session_mgmt.py b/src/web/views/session_mgmt.py index a3ef8e3c..876efd3d 100644 --- a/src/web/views/session_mgmt.py +++ b/src/web/views/session_mgmt.py @@ -5,10 +5,10 @@ from werkzeug import generate_password_hash from werkzeug.exceptions import NotFound from flask import (render_template, flash, session, request, url_for, redirect, current_app) -from flask.ext.babel import gettext -from flask.ext.login import LoginManager, logout_user, \ +from flask_babel import gettext +from flask_login import LoginManager, logout_user, \ login_required, current_user -from flask.ext.principal import (Principal, AnonymousIdentity, UserNeed, +from flask_principal import (Principal, AnonymousIdentity, UserNeed, identity_changed, identity_loaded, session_identity_loader) |