summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bdd72f4)
raw | patch | inline | side by side (parent: bdd72f4)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 26 Mar 2004 23:54:40 +0000 (23:54 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 26 Mar 2004 23:54:40 +0000 (23:54 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2218 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/backends/sessions_dbm.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 3287abbb694b0f5a46b5cad15883ff99d43cf197..2d20e4ce57ec02b170415b75456b8e12794c113f 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- edit collision detection was broken for index-page edits
- sqlite backend wasn't migrating multilink tables correctly
- use SimpleCookie instead of Cookie (is an alias for the evil SmartCookie)
+- handle older sessions in session dbm
2004-03-24 0.7.0b1
index 433db42bc6cf8e7be481188580af88274d0fa5f9..82782d005f04b91991d38bf76ce84944c7cfefb7 100644 (file)
-#$Id: sessions_dbm.py,v 1.2 2004-03-19 04:47:59 richard Exp $
+#$Id: sessions_dbm.py,v 1.3 2004-03-26 23:54:40 richard Exp $
"""This module defines a very basic store that's used by the CGI interface
to store session and one-time-key information.
"""
week = 60*60*24*7
for sessid in self.list():
- interval = now - self.get(sessid, '__timestamp')
+ interval = now - self.get(sessid, '__timestamp',
+ default=time.time())
if interval > week:
self.destroy(sessid)