hooks/notification.py
changeset 9006 e4ea8f9ffa11
parent 8968 c05515db2763
child 9267 24d9b86dfa54
equal deleted inserted replaced
9005:63cf580accfc 9006:e4ea8f9ffa11
   156         session = self.session
   156         session = self.session
   157         for eid in session.transaction_data['changes']:
   157         for eid in session.transaction_data['changes']:
   158             view = session.vreg['views'].select('notif_entity_updated', session,
   158             view = session.vreg['views'].select('notif_entity_updated', session,
   159                                                 rset=session.eid_rset(eid),
   159                                                 rset=session.eid_rset(eid),
   160                                                 row=0)
   160                                                 row=0)
   161             notify_on_commit(self.session, view)
   161             notify_on_commit(self.session, view,
       
   162                     viewargs={'changes': session.transaction_data['changes'][eid]})
   162 
   163 
   163 
   164 
   164 class EntityUpdateHook(NotificationHook):
   165 class EntityUpdateHook(NotificationHook):
   165     __regid__ = 'notifentityupdated'
   166     __regid__ = 'notifentityupdated'
   166     __abstract__ = True # do not register by default
   167     __abstract__ = True # do not register by default