summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3ac5b51)
raw | patch | inline | side by side (parent: 3ac5b51)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 10 Jul 2002 06:21:38 +0000 (06:21 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 10 Jul 2002 06:21:38 +0000 (06:21 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@856 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_anydbm.py | patch | blob | history |
index 53a53c331db63bf6bebe37fe5b34c450c0c23a60..681dfbd0b33cbae6225c13fd188884e070cca304 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_anydbm.py,v 1.41 2002-07-10 00:21:45 richard Exp $
+#$Id: back_anydbm.py,v 1.42 2002-07-10 06:21:38 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
journal = marshal.loads(db[nodeid])
except KeyError:
raise KeyError, 'no such %s %s'%(classname, nodeid)
- db.close()
+ finally:
+ db.close()
res = []
for entry in journal:
(nodeid, date_stamp, user, action, params) = entry
#
#$Log: not supported by cvs2svn $
+#Revision 1.41 2002/07/10 00:21:45 richard
+#explicit database closing
+#
#Revision 1.40 2002/07/09 04:19:09 richard
#Added reindex command to roundup-admin.
#Fixed reindex on first access.