changeset 816:f75aa15caa7d maint-0.4

bsddb3 backend should use 'c' for create, not 'n' for nuke
author Richard Jones <richard@users.sourceforge.net>
date Mon, 08 Jul 2002 06:51:02 +0000
parents e978c475a82f
children 982a5abb01ea
files CHANGES.txt roundup/backends/back_bsddb3.py
diffstat 2 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Thu Jul 04 01:26:26 2002 +0000
+++ b/CHANGES.txt	Mon Jul 08 06:51:02 2002 +0000
@@ -1,10 +1,11 @@
 This file contains the changes to the Roundup system over time. The entries
 are given with the most recent entry first.
 
-2002-??-?? 0.?.?
+2002-??-?? 0.4.3
 Fixed:
  . #576086 ] dumb copying mistake (frontends/ZRoundup.py)
  . installation instructions now mention "python2" in "testing your python".
+ . bsddb3 backend should use 'c' for create, not 'n' for nuke
 
 
 2002-06-24 0.4.2
--- a/roundup/backends/back_bsddb3.py	Thu Jul 04 01:26:26 2002 +0000
+++ b/roundup/backends/back_bsddb3.py	Mon Jul 08 06:51:02 2002 +0000
@@ -15,7 +15,7 @@
 # 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.12.2.1 2002-07-08 06:51:02 richard Exp $
 
 import bsddb3, os, marshal
 from roundup import hyperdb, date
@@ -46,7 +46,7 @@
         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
@@ -58,8 +58,8 @@
         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__:
@@ -115,6 +115,12 @@
 
 #
 #$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

Roundup Issue Tracker: http://roundup-tracker.org/