summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 307b1dd)
raw | patch | inline | side by side (parent: 307b1dd)
author | anthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 3 Aug 2001 02:45:47 +0000 (02:45 +0000) | ||
committer | anthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 3 Aug 2001 02:45:47 +0000 (02:45 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@202 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_bsddb3.py | patch | blob | history |
index 9c14e3f347adedd79ce4b8e64abdd20357bec012..d09a9cfc413821f8fdae5c64afe2a7b2cf5b48ea 100644 (file)
-#$Id: back_bsddb3.py,v 1.3 2001-07-30 02:36:23 richard Exp $
+#$Id: back_bsddb3.py,v 1.4 2001-08-03 02:45:47 anthonybaxter Exp $
import bsddb3, os, marshal
from roundup import hyperdb, date
def clear(self):
for cn in self.classes.keys():
db = os.path.join(self.dir, 'nodes.%s'%cn)
- bsddb3.btopen(db, 'n')
+ bsddb3.btopen(db, 'c')
db = os.path.join(self.dir, 'journals.%s'%cn)
- bsddb3.btopen(db, 'n')
+ bsddb3.btopen(db, 'c')
def getclassdb(self, classname, mode='r'):
''' grab a connection to the class db that will be used for
if os.path.exists(path):
return bsddb3.btopen(path, mode)
else:
- return bsddb3.btopen(path, 'n')
+ return bsddb3.btopen(path, 'c')
#
# Nodes
#
#$Log: not supported by cvs2svn $
+#Revision 1.3 2001/07/30 02:36:23 richard
+#Handle non-existence of db files in the other backends (code from anydbm).
+#
#Revision 1.2 2001/07/30 01:41:36 richard
#Makes schema changes mucho easier.
#