summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Yves Chibon <pingou@pingoured.fr>2011-11-29 19:12:20 +0100
committerPierre-Yves Chibon <pingou@pingoured.fr>2011-11-29 19:12:20 +0100
commit53c610d8f4b2aec98c279c3af8439bde38603213 (patch)
treea436801e404a729635361beb41f492ed80bb2976
parent187304741042f4949b630fc8677ebf96155a7eec (diff)
Add help function and fix check_user
- stupid me, the whole idea of check_user is to not relogin... so don't log out!
-rw-r--r--review-srv-tg2/review_srv/controllers/root.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/review-srv-tg2/review_srv/controllers/root.py b/review-srv-tg2/review_srv/controllers/root.py
index c0c5921..ad0e100 100644
--- a/review-srv-tg2/review_srv/controllers/root.py
+++ b/review-srv-tg2/review_srv/controllers/root.py
@@ -51,9 +51,6 @@ def check_user():
user.email_address = user_fas.email_address
user.display_name = user_fas.display_name
model.DBSession.add(user)
- else:
- flash('Please re-login')
- redirect('/logout_handler')
class RootController(BaseController):
@@ -197,6 +194,10 @@ class RootController(BaseController):
"""This method showcases TG's access to the wsgi environment."""
return dict(page='env', environment=request.environ)
+ @expose('review_srv.templates.help')
+ def help(self):
+ return dict(page='help')
+
@expose('review_srv.templates.index')
def index(self):
"""Handle the front-page."""