sobjects/notification.py
changeset 2144 51c84d585456
parent 2058 7ef12c03447c
parent 2102 268659907769
child 2304 8381cc99daa8
--- a/sobjects/notification.py	Tue Jun 23 13:31:35 2009 +0200
+++ b/sobjects/notification.py	Tue Jun 23 13:36:38 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', {}))