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/18 10:51:15 UTC

[8/9] 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/8ccd2a5c
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/8ccd2a5c
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/8ccd2a5c

Branch: refs/heads/je/42cc_7451
Commit: 8ccd2a5cb0ee9e1c75a7ae4d2e8507e181976a3d
Parents: 0d6821e
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 17 17:24:38 2014 +0300

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


http://git-wip-us.apache.org/repos/asf/allura/blob/8ccd2a5c/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)