From: richard Date: Sat, 16 Feb 2002 09:14:17 +0000 (+0000) Subject: . #514854 ] History: "User" is always ticket creator X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e4c89796238027912e80acdab4c8c7a67fc21a9e;p=roundup.git . #514854 ] History: "User" is always ticket creator git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@636 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 411406a..f20f74d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -24,6 +24,7 @@ Fixed: . #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 diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index 80603f3..5f30b1a 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -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 @@ class Database(hyperdb.Database): 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 @@ class Database(hyperdb.Database): 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 @@ class Database(hyperdb.Database): # #$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 #