diff roundup/backends/sessions_dbm.py @ 2089:93f03c6714d8

A few big changes in this commit: 1. The current indexer has been moved to backends/indexer_dbm in anticipation of my writing an indexer_rdbms, 2. Changed indexer invocation during create / set to follow the pattern set by the metakit backend, which was much cleaner, and 3. The "content" property of FileClass is now mutable in all but the metakit backend. Metakit needs to be changed to support the editing of "content". Hey, and I learnt today that the metakit backend implements its own indexer. How about that... :)
author Richard Jones <richard@users.sourceforge.net>
date Fri, 19 Mar 2004 04:47:59 +0000
parents c091cacdc505
children c69dd43728a3
line wrap: on
line diff
--- a/roundup/backends/sessions_dbm.py	Thu Mar 18 22:47:00 2004 +0000
+++ b/roundup/backends/sessions_dbm.py	Fri Mar 19 04:47:59 2004 +0000
@@ -1,4 +1,4 @@
-#$Id: sessions_dbm.py,v 1.1 2004-03-18 01:58:45 richard Exp $
+#$Id: sessions_dbm.py,v 1.2 2004-03-19 04:47:59 richard Exp $
 """This module defines a very basic store that's used by the CGI interface
 to store session and one-time-key information.
 
@@ -63,7 +63,9 @@
         db = self.opendb('c')
         try:
             try:
-                return marshal.loads(db[infoid])
+                d = marshal.loads(db[infoid])
+                del d['__timestamp']
+                return d
             except KeyError:
                 raise KeyError, 'No such %s "%s"'%(self.name, infoid)
         finally:

Roundup Issue Tracker: http://roundup-tracker.org/