summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e28639d)
raw | patch | inline | side by side (parent: e28639d)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 8 Jul 2002 06:41:03 +0000 (06:41 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 8 Jul 2002 06:41:03 +0000 (06:41 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@829 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_bsddb3.py | patch | blob | history |
index 821203b84c94a6854e29cb72045ea16180534f98..287b2abdbab421638fff89691351e95b0bbb45ec 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_bsddb3.py,v 1.12 2002-05-21 05:52:11 richard Exp $
+#$Id: back_bsddb3.py,v 1.13 2002-07-08 06:41:03 richard Exp $
import bsddb3, os, marshal
from roundup import hyperdb, date
if os.path.exists(path):
return bsddb3.btopen(path, mode)
else:
- return bsddb3.btopen(path, 'n')
+ return bsddb3.btopen(path, 'c')
def _opendb(self, name, mode):
'''Low-level database opener that gets around anydbm/dbm
path = os.path.join(os.getcwd(), self.dir, name)
if not os.path.exists(path):
if __debug__:
- print >>hyperdb.DEBUG, "_opendb bsddb3.open(%r, 'n')"%path
- return bsddb3.btopen(path, 'n')
+ print >>hyperdb.DEBUG, "_opendb bsddb3.open(%r, 'c')"%path
+ return bsddb3.btopen(path, 'c')
# open the database with the correct module
if __debug__:
#
#$Log: not supported by cvs2svn $
+#Revision 1.12 2002/05/21 05:52:11 richard
+#Well whadya know, bsddb3 works again.
+#The backend is implemented _exactly_ the same as bsddb - so there's no
+#using its transaction or locking support. It'd be nice to use those some
+#day I suppose.
+#
#Revision 1.11 2002/01/14 02:20:15 richard
# . changed all config accesses so they access either the instance or the
# config attriubute on the db. This means that all config is obtained from