equal
deleted
inserted
replaced
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 |