summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 35b4510)
raw | patch | inline | side by side (parent: 35b4510)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 23 Jul 2001 08:25:33 +0000 (08:25 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 23 Jul 2001 08:25:33 +0000 (08:25 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@54 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_bsddb.py | patch | blob | history |
index 2c948c656cd26b22edc64aa95f4ca3d1a06e48b0..db66c485f724cdca9bb931f57d368cc6da8678f3 100644 (file)
-#$Id: back_bsddb.py,v 1.3 2001-07-23 08:20:44 richard Exp $
+#$Id: back_bsddb.py,v 1.4 2001-07-23 08:25:33 richard Exp $
import bsddb, os, marshal
from roundup import hyperdb, date
except bsddb.error, error:
if error.args[0] != 2: raise
return []
+ # mor handling of bad journals
+ if not db.has_key(nodeid): return []
journal = marshal.loads(db[nodeid])
res = []
for entry in journal:
#
#$Log: not supported by cvs2svn $
+#Revision 1.3 2001/07/23 08:20:44 richard
+#Moved over to using marshal in the bsddb and anydbm backends.
+#roundup-admin now has a "freshen" command that'll load/save all nodes (not
+# retired - mod hyperdb.Class.list() so it lists retired nodes)
+#
#Revision 1.2 2001/07/23 07:56:05 richard
#Storing only marshallable data in the db - no nasty pickled class references.
#