summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13b653c)
raw | patch | inline | side by side (parent: 13b653c)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 20 Jun 2002 23:52:35 +0000 (23:52 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 20 Jun 2002 23:52:35 +0000 (23:52 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@801 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_anydbm.py | patch | blob | history |
index 60159cdec953908fdc4fd6510485e91b89a93682..46f1df6d74e6fc075a89cbebcf144a99f64f3715 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_anydbm.py,v 1.36 2002-06-19 03:07:19 richard Exp $
+#$Id: back_anydbm.py,v 1.37 2002-06-20 23:52:35 richard Exp $
'''
This module defines a backend that saves the hyperdatabase in a database
chosen by anydbm. It is guaranteed to always be available in python
if str(error) == "need 'c' or 'n' flag to open new db": return []
elif error.args[0] != 2: raise
return []
- journal = marshal.loads(db[nodeid])
+ try:
+ journal = marshal.loads(db[nodeid])
+ except KeyError:
+ raise KeyError, 'no such %s %s'%(classname, nodeid)
res = []
for entry in journal:
(nodeid, date_stamp, user, action, params) = entry
#
#$Log: not supported by cvs2svn $
+#Revision 1.36 2002/06/19 03:07:19 richard
+#Moved the file storage commit into blobfiles where it belongs.
+#
#Revision 1.35 2002/05/25 07:16:24 rochecompaan
#Merged search_indexing-branch with HEAD
#