Skip to content

Commit dd1ce4b

Browse files
author
Richard Jones
committed
fire auditors and reactors in rdbms retire (thanks Sheila King)
1 parent 3704ad5 commit dd1ce4b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ are given with the most recent entry first.
1010
- fixed handling of missing password (sf bug 655632)
1111
- applied patches for handling Outlook quirks (thanks Andrey Lebedev)
1212
(multipart/alternative, "fw" and content-type "name")
13+
- fire auditors and reactors in rdbms retire (thanks Sheila King)
1314

1415

1516
2002-12-11 0.5.3

roundup/backends/rdbms_common.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.25 2002-12-12 09:31:04 richard Exp $
1+
# $Id: rdbms_common.py,v 1.26 2003-01-05 10:55:16 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -1489,6 +1489,8 @@ def retire(self, nodeid):
14891489
if self.db.journaltag is None:
14901490
raise DatabaseError, 'Database open read-only'
14911491

1492+
self.fireAuditors('retire', nodeid, None)
1493+
14921494
# use the arg for __retired__ to cope with any odd database type
14931495
# conversion (hello, sqlite)
14941496
sql = 'update _%s set __retired__=%s where id=%s'%(self.classname,
@@ -1497,6 +1499,8 @@ def retire(self, nodeid):
14971499
print >>hyperdb.DEBUG, 'retire', (self, sql, nodeid)
14981500
self.db.cursor.execute(sql, (1, nodeid))
14991501

1502+
self.fireReactors('retire', nodeid, None)
1503+
15001504
def is_retired(self, nodeid):
15011505
'''Return true if the node is rerired
15021506
'''

0 commit comments

Comments
 (0)