Skip to content

Commit 0f6c29f

Browse files
author
Anthony Baxter
committed
'n' -> 'c' for create.
1 parent 21c69d9 commit 0f6c29f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

roundup/backends/back_bsddb3.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_bsddb3.py,v 1.3 2001-07-30 02:36:23 richard Exp $
1+
#$Id: back_bsddb3.py,v 1.4 2001-08-03 02:45:47 anthonybaxter Exp $
22

33
import bsddb3, os, marshal
44
from roundup import hyperdb, date
@@ -57,9 +57,9 @@ def getclass(self, classname):
5757
def clear(self):
5858
for cn in self.classes.keys():
5959
db = os.path.join(self.dir, 'nodes.%s'%cn)
60-
bsddb3.btopen(db, 'n')
60+
bsddb3.btopen(db, 'c')
6161
db = os.path.join(self.dir, 'journals.%s'%cn)
62-
bsddb3.btopen(db, 'n')
62+
bsddb3.btopen(db, 'c')
6363

6464
def getclassdb(self, classname, mode='r'):
6565
''' grab a connection to the class db that will be used for
@@ -69,7 +69,7 @@ def getclassdb(self, classname, mode='r'):
6969
if os.path.exists(path):
7070
return bsddb3.btopen(path, mode)
7171
else:
72-
return bsddb3.btopen(path, 'n')
72+
return bsddb3.btopen(path, 'c')
7373

7474
#
7575
# Nodes
@@ -202,6 +202,9 @@ def rollback(self):
202202

203203
#
204204
#$Log: not supported by cvs2svn $
205+
#Revision 1.3 2001/07/30 02:36:23 richard
206+
#Handle non-existence of db files in the other backends (code from anydbm).
207+
#
205208
#Revision 1.2 2001/07/30 01:41:36 richard
206209
#Makes schema changes mucho easier.
207210
#

0 commit comments

Comments
 (0)