You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/07/25 09:55:29 UTC

[26/28] git commit: [#7451] ticket:605 Added comment to RememberLoginSessionMiddleware

[#7451] ticket:605 Added comment to RememberLoginSessionMiddleware


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/4a7253d7
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/4a7253d7
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/4a7253d7

Branch: refs/heads/je/42cc_7451
Commit: 4a7253d720b6d70ecdeee4e30fdacde41d17255f
Parents: 4809319
Author: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Authored: Thu Jul 17 17:24:38 2014 +0300
Committer: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Committed: Thu Jul 24 22:16:21 2014 +0300

----------------------------------------------------------------------
 Allura/allura/lib/custom_middleware.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/4a7253d7/Allura/allura/lib/custom_middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py
index a8fc04e..cbaa94d 100644
--- a/Allura/allura/lib/custom_middleware.py
+++ b/Allura/allura/lib/custom_middleware.py
@@ -286,6 +286,9 @@ class AlluraTimerMiddleware(TimerMiddleware):
 
 
 class RememberLoginSessionMiddleware(SessionMiddleware):
+    '''Modified version of beaker's SessionMiddleware.
+    This middleware changes session's cookie expiration time according to login_expires
+    session variable'''
     
     def __call__(self, environ, start_response):
         session = SessionObject(environ, **self.options)