[hooks] fix dummy NameError in RenderAndSendNotification
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 23 Sep 2009 12:31:18 +0200
changeset 3422 089c4b71ac16
parent 3421 7fec79c1c11f
child 3423 d1356e008b19
[hooks] fix dummy NameError in RenderAndSendNotification
hooks/notification.py
--- a/hooks/notification.py	Wed Sep 23 12:30:56 2009 +0200
+++ b/hooks/notification.py	Wed Sep 23 12:31:18 2009 +0200
@@ -20,7 +20,7 @@
         view = self.view
         if view.cw_rset is not None and not view.cw_rset:
             return # entity added and deleted in the same transaction (cache effect)
-        if view.cw_rset and self.session.deleted_in_transaction(view.cw_rset[cw_rset.cw_row or 0][cw_rset.cw_col or 0]):
+        if view.cw_rset and self.session.deleted_in_transaction(view.cw_rset[view.cw_row or 0][view.cw_col or 0]):
             return # entity added and deleted in the same transaction
         self.view.render_and_send(**getattr(self, 'viewargs', {}))