From ad531daa433293713cac8b0556f47f964d22fba8 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 14 Jan 2013 22:11:44 +0100 Subject: Added logout button. --- source/img/logout.png | Bin 0 -> 1800 bytes source/pyAggr3g470r.py | 10 ++++++++++ source/templates/index.html | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 source/img/logout.png (limited to 'source') diff --git a/source/img/logout.png b/source/img/logout.png new file mode 100644 index 00000000..55316f8b Binary files /dev/null and b/source/img/logout.png differ diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 8df0ce44..d99ab122 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -561,6 +561,16 @@ class pyAggr3g470r(object): delete_article.exposed = True + @auth.require() + def logout(self): + """ + Close the session. + """ + return self.auth.logout() + + logout.exposed = True + + @auth.require() def drop_base(self): """ diff --git a/source/templates/index.html b/source/templates/index.html index 7a09e25c..87ba7815 100644 --- a/source/templates/index.html +++ b/source/templates/index.html @@ -43,6 +43,8 @@ import utils %endif %endif +        +
<% html = "" -- cgit