sobjects/notification.py
branchstable
changeset 2102 268659907769
parent 2101 08003e0354a7
child 2144 51c84d585456
--- a/sobjects/notification.py	Thu Jun 11 19:07:47 2009 +0200
+++ b/sobjects/notification.py	Thu Jun 11 19:10:30 2009 +0200
@@ -62,7 +62,7 @@
 class RenderAndSendNotificationView(PreCommitOperation):
     """delay rendering of notification view until precommit"""
     def precommit_event(self):
-        if self.view.rset[0][0] in self.session.query_data('pendingeids', ()):
+        if self.view.rset[0][0] in self.session.transaction_data.get('pendingeids', ()):
             return # entity added and deleted in the same transaction
         self.view.render_and_send(**getattr(self, 'viewargs', {}))