diff roundup/backends/rdbms_common.py @ 1345:618aa9c37d65

fire auditors and reactors in rdbms retire (thanks Sheila King)
author Richard Jones <richard@users.sourceforge.net>
date Sun, 05 Jan 2003 10:55:16 +0000
parents 80d27b7d6db5
children d1bfb479e527
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Fri Dec 27 23:54:05 2002 +0000
+++ b/roundup/backends/rdbms_common.py	Sun Jan 05 10:55:16 2003 +0000
@@ -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 @@
         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 @@
             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
         '''

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