Skip to content

Commit 3822457

Browse files
author
Richard Jones
committed
[SF#514854] History: "User" is always ticket creator
1 parent e0344df commit 3822457

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Fixed:
2424
. #516883 ] mail interface + ANONYMOUS_REGISTER
2525
. #516854 ] "My Issues" and redisplay
2626
. #517906 ] Attribute order in "View customisation"
27+
. #514854 ] History: "User" is always ticket creator
2728

2829

2930
2002-01-24 - 0.4.0

roundup/backends/back_anydbm.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.27 2002-01-22 07:21:13 richard Exp $
18+
#$Id: back_anydbm.py,v 1.28 2002-02-16 09:14:17 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in a database
2121
chosen by anydbm. It is guaranteed to always be available in python
@@ -313,9 +313,9 @@ def getjournal(self, classname, nodeid):
313313
journal = marshal.loads(db[nodeid])
314314
res = []
315315
for entry in journal:
316-
(nodeid, date_stamp, self.journaltag, action, params) = entry
316+
(nodeid, date_stamp, user, action, params) = entry
317317
date_obj = date.Date(date_stamp)
318-
res.append((nodeid, date_obj, self.journaltag, action, params))
318+
res.append((nodeid, date_obj, user, action, params))
319319
return res
320320

321321
def pack(self, pack_before):
@@ -411,10 +411,10 @@ def _doSaveNode(self, classname, nodeid, node):
411411
db[nodeid] = marshal.dumps(node)
412412

413413
def _doSaveJournal(self, classname, nodeid, action, params):
414-
if hyperdb.DEBUG:
415-
print '_doSaveJournal', (self, classname, nodeid, action, params)
416414
entry = (nodeid, date.Date().get_tuple(), self.journaltag, action,
417415
params)
416+
if hyperdb.DEBUG:
417+
print '_doSaveJournal', entry
418418

419419
# get the database handle
420420
db_name = 'journals.%s'%classname
@@ -453,6 +453,14 @@ def rollback(self):
453453

454454
#
455455
#$Log: not supported by cvs2svn $
456+
#Revision 1.27 2002/01/22 07:21:13 richard
457+
#. fixed back_bsddb so it passed the journal tests
458+
#
459+
#... it didn't seem happy using the back_anydbm _open method, which is odd.
460+
#Yet another occurrance of whichdb not being able to recognise older bsddb
461+
#databases. Yadda yadda. Made the HYPERDBDEBUG stuff more sane in the
462+
#process.
463+
#
456464
#Revision 1.26 2002/01/22 05:18:38 rochecompaan
457465
#last_set_entry was referenced before assignment
458466
#

0 commit comments

Comments
 (0)