Repository : http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
commit b6c1e983eb5dd2f24350b44c010185048af587eb Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Thu Nov 8 09:53:30 2012 +0100
The session should be remove when the application is teardown
fedocal/__init__.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/fedocal/__init__.py b/fedocal/__init__.py index 7e67688..e67c86c 100644 --- a/fedocal/__init__.py +++ b/fedocal/__init__.py @@ -73,6 +73,10 @@ def reverse_filter(weekdays): weekdays[-1].strftime('%d %b %Y'))
+@APP.teardown_request +def shutdown_session(exception=None): + SESSION.remove() + def is_admin(): """ Return wether the user is admin for this application or not. """ if not flask.g.fas_user:
fedocal-devel@lists.fedorahosted.org