diff roundup/backends/back_bsddb.py @ 625:88acf6fe20a8

forgot to patch bsddb backend too
author Richard Jones <richard@users.sourceforge.net>
date Sat, 16 Feb 2002 09:15:33 +0000
parents e346a9792335
children 9b2575610953
line wrap: on
line diff
--- a/roundup/backends/back_bsddb.py	Sat Feb 16 09:14:17 2002 +0000
+++ b/roundup/backends/back_bsddb.py	Sat Feb 16 09:15:33 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-#$Id: back_bsddb.py,v 1.14 2002-01-22 07:21:13 richard Exp $
+#$Id: back_bsddb.py,v 1.15 2002-02-16 09:15:33 richard Exp $
 '''
 This module defines a backend that saves the hyperdatabase in BSDDB.
 '''
@@ -88,9 +88,9 @@
         journal = marshal.loads(db[nodeid])
         res = []
         for entry in journal:
-            (nodeid, date_stamp, self.journaltag, action, params) = entry
+            (nodeid, date_stamp, user, action, params) = entry
             date_obj = date.Date(date_stamp)
-            res.append((nodeid, date_obj, self.journaltag, action, params))
+            res.append((nodeid, date_obj, user, action, params))
         db.close()
         return res
 
@@ -109,6 +109,14 @@
 
 #
 #$Log: not supported by cvs2svn $
+#Revision 1.14  2002/01/22 07:21:13  richard
+#. fixed back_bsddb so it passed the journal tests
+#
+#... it didn't seem happy using the back_anydbm _open method, which is odd.
+#Yet another occurrance of whichdb not being able to recognise older bsddb
+#databases. Yadda yadda. Made the HYPERDBDEBUG stuff more sane in the
+#process.
+#
 #Revision 1.13  2001/12/10 22:20:01  richard
 #Enabled transaction support in the bsddb backend. It uses the anydbm code
 #where possible, only replacing methods where the db is opened (it uses the

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