From d73595541d08db6d026f595021ed5764e2c4e0d5 Mon Sep 17 00:00:00 2001 From: Adabriand Furtado Date: Fri, 20 May 2016 12:09:20 -0300 Subject: [PATCH] Ajuste na versão da lib flask-babel. --- pybossa.egg-info/requires.txt | 2 +- pybossa/view/account.py | 3 ++- setup.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pybossa.egg-info/requires.txt b/pybossa.egg-info/requires.txt index 2404d8c..9ef3d5e 100644 --- a/pybossa.egg-info/requires.txt +++ b/pybossa.egg-info/requires.txt @@ -1,7 +1,7 @@ alembic>=0.6.4, <1.0 beautifulsoup4>=4.3.2, <5.0 blinker>=1.3, <2.0 -Flask-Babel>=0.9, <1.0 +Flask-Babel>=0.9, <0.10 Flask-Login Flask-Mail>=0.9.0, <1.0 misaka>=1.0.0, <2.0.0 diff --git a/pybossa/view/account.py b/pybossa/view/account.py index a367a92..c4da480 100644 --- a/pybossa/view/account.py +++ b/pybossa/view/account.py @@ -151,7 +151,8 @@ def signout(): """ logout_user() flash(gettext('You are now signed out'), 'success') - return redirect(url_for('home.home')) + #return redirect(url_for('home.home')) + return redirect('/') def get_email_confirmation_url(account): diff --git a/setup.py b/setup.py index 310ff96..2b084cb 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ requirements = [ "alembic>=0.6.4, <1.0", "beautifulsoup4>=4.3.2, <5.0", "blinker>=1.3, <2.0", - "Flask-Babel>=0.9, <1.0", + "Flask-Babel>=0.9, <0.10", "Flask-Login", # was pinned to Flask-Login==0.2.3 in the past. GitHub version 3.0+ is used now. "Flask-Mail>=0.9.0, <1.0", "misaka>=1.0.0, <2.0.0", -- libgit2 0.21.2