[sobject] fix notification operation
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 06 May 2013 19:40:15 +0200
changeset 8968 c05515db2763
parent 8967 b7f99c538cb9
child 8969 b37ce419ce26
[sobject] fix notification operation regression introduced in bf4003760e02 Operation use self. session. not self._cw. I'm a bit surprised that its not tested. closes ##2870077
hooks/notification.py
--- a/hooks/notification.py	Fri May 03 16:36:42 2013 +0200
+++ b/hooks/notification.py	Mon May 06 19:40:15 2013 +0200
@@ -158,7 +158,7 @@
             view = session.vreg['views'].select('notif_entity_updated', session,
                                                 rset=session.eid_rset(eid),
                                                 row=0)
-            notify_on_commit(self._cw, view)
+            notify_on_commit(self.session, view)
 
 
 class EntityUpdateHook(NotificationHook):