[email notifications] send notification at post-commit time (closes #2119248) stable
authorAlexandre Richardson <alexandre.richardson@logilab.fr>
Mon, 13 Feb 2012 12:49:49 +0100
branchstable
changeset 8227 884405bf3621
parent 8226 a3d3bdd46463
child 8228 fe53c7e1625f
[email notifications] send notification at post-commit time (closes #2119248)
hooks/notification.py
--- a/hooks/notification.py	Mon Feb 13 12:47:59 2012 +0100
+++ b/hooks/notification.py	Mon Feb 13 12:49:49 2012 +0100
@@ -30,7 +30,7 @@
     """delay rendering of notification view until precommit"""
     view = None # make pylint happy
 
-    def precommit_event(self):
+    def postcommit_event(self):
         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)