hooks/notification.py
branchstable
changeset 5693 8af6623f3d4e
parent 5426 0d4853a6e5ee
child 5877 0c7b7b76a84f
--- a/hooks/notification.py	Wed Jun 09 09:42:24 2010 +0200
+++ b/hooks/notification.py	Wed Jun 09 09:54:35 2010 +0200
@@ -188,7 +188,7 @@
         except:
             # may raise an error during deletion process, for instance due to
             # missing required relation
-            title = '#%s' % eid
+            title = '#%s' % self.entity.eid
         self._cw.transaction_data.setdefault('pendingchanges', []).append(
-            ('delete_entity', (self.entity.eid, str(self.entity.e_schema), title)))
+            ('delete_entity', (self.entity.eid, self.entity.__regid__, title)))
         return True