hooks/notification.py
branchstable
changeset 5693 8af6623f3d4e
parent 5426 0d4853a6e5ee
child 5877 0c7b7b76a84f
equal deleted inserted replaced
5692:59ceed788bdb 5693:8af6623f3d4e
   186         try:
   186         try:
   187             title = self.entity.dc_title()
   187             title = self.entity.dc_title()
   188         except:
   188         except:
   189             # may raise an error during deletion process, for instance due to
   189             # may raise an error during deletion process, for instance due to
   190             # missing required relation
   190             # missing required relation
   191             title = '#%s' % eid
   191             title = '#%s' % self.entity.eid
   192         self._cw.transaction_data.setdefault('pendingchanges', []).append(
   192         self._cw.transaction_data.setdefault('pendingchanges', []).append(
   193             ('delete_entity', (self.entity.eid, str(self.entity.e_schema), title)))
   193             ('delete_entity', (self.entity.eid, self.entity.__regid__, title)))
   194         return True
   194         return True