allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [06/13] git commit: [#7451] ticket:605 Added comment to RememberLoginSessionMiddleware
Date Fri, 25 Jul 2014 19:22:09 GMT
[#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/6a59e5f5
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/6a59e5f5
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/6a59e5f5

Branch: refs/heads/master
Commit: 6a59e5f51cf5f68216b25e2e2909fc8f9e5efaf4
Parents: 8ba2e39
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Thu Jul 17 17:24:38 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Jul 25 18:43:28 2014 +0000

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


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


Mime
View raw message