From: richard Date: Sun, 5 Jan 2003 10:55:16 +0000 (+0000) Subject: fire auditors and reactors in rdbms retire (thanks Sheila King) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6a29b34466bf793587f04989c16364dff1362423;p=roundup.git fire auditors and reactors in rdbms retire (thanks Sheila King) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1420 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 77c11c2..e2ea984 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,7 @@ are given with the most recent entry first. - fixed handling of missing password (sf bug 655632) - applied patches for handling Outlook quirks (thanks Andrey Lebedev) (multipart/alternative, "fw" and content-type "name") +- fire auditors and reactors in rdbms retire (thanks Sheila King) 2002-12-11 0.5.3 diff --git a/roundup/backends/rdbms_common.py b/roundup/backends/rdbms_common.py index b0c466c..7c6ba76 100644 --- a/roundup/backends/rdbms_common.py +++ b/roundup/backends/rdbms_common.py @@ -1,4 +1,4 @@ -# $Id: rdbms_common.py,v 1.25 2002-12-12 09:31:04 richard Exp $ +# $Id: rdbms_common.py,v 1.26 2003-01-05 10:55:16 richard Exp $ ''' Relational database (SQL) backend common code. Basics: @@ -1489,6 +1489,8 @@ class Class(hyperdb.Class): if self.db.journaltag is None: raise DatabaseError, 'Database open read-only' + self.fireAuditors('retire', nodeid, None) + # use the arg for __retired__ to cope with any odd database type # conversion (hello, sqlite) sql = 'update _%s set __retired__=%s where id=%s'%(self.classname, @@ -1497,6 +1499,8 @@ class Class(hyperdb.Class): print >>hyperdb.DEBUG, 'retire', (self, sql, nodeid) self.db.cursor.execute(sql, (1, nodeid)) + self.fireReactors('retire', nodeid, None) + def is_retired(self, nodeid): '''Return true if the node is rerired '''