changeset 624:352d67e22d6d

[SF#514854] History: "User" is always ticket creator
author Richard Jones <richard@users.sourceforge.net>
date Sat, 16 Feb 2002 09:14:17 +0000
parents 159ed4209819
children 88acf6fe20a8
files CHANGES.txt roundup/backends/back_anydbm.py
diffstat 2 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Sat Feb 16 09:10:52 2002 +0000
+++ b/CHANGES.txt	Sat Feb 16 09:14:17 2002 +0000
@@ -24,6 +24,7 @@
  . #516883 ] mail interface + ANONYMOUS_REGISTER
  . #516854 ] "My Issues" and redisplay
  . #517906 ] Attribute order in "View customisation"
+ . #514854 ] History: "User" is always ticket creator
 
 
 2002-01-24 - 0.4.0
--- a/roundup/backends/back_anydbm.py	Sat Feb 16 09:10:52 2002 +0000
+++ b/roundup/backends/back_anydbm.py	Sat Feb 16 09:14:17 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-#$Id: back_anydbm.py,v 1.27 2002-01-22 07:21:13 richard Exp $
+#$Id: back_anydbm.py,v 1.28 2002-02-16 09:14:17 richard Exp $
 '''
 This module defines a backend that saves the hyperdatabase in a database
 chosen by anydbm. It is guaranteed to always be available in python
@@ -313,9 +313,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))
         return res
 
     def pack(self, pack_before):
@@ -411,10 +411,10 @@
         db[nodeid] = marshal.dumps(node)
 
     def _doSaveJournal(self, classname, nodeid, action, params):
-        if hyperdb.DEBUG:
-            print '_doSaveJournal', (self, classname, nodeid, action, params)
         entry = (nodeid, date.Date().get_tuple(), self.journaltag, action,
             params)
+        if hyperdb.DEBUG:
+            print '_doSaveJournal', entry
 
         # get the database handle
         db_name = 'journals.%s'%classname
@@ -453,6 +453,14 @@
 
 #
 #$Log: not supported by cvs2svn $
+#Revision 1.27  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.26  2002/01/22 05:18:38  rochecompaan
 #last_set_entry was referenced before assignment
 #

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