[notification] add missing import, fix dummy AttributeError in RenderAndSendNotificationView
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 23 Sep 2009 13:29:10 +0200
changeset 3427 78dfef45ee48
parent 3426 6ea4a2ff01c9
child 3428 d689ee586295
[notification] add missing import, fix dummy AttributeError in RenderAndSendNotificationView
hooks/notification.py
--- a/hooks/notification.py	Wed Sep 23 13:28:26 2009 +0200
+++ b/hooks/notification.py	Wed Sep 23 13:29:10 2009 +0200
@@ -12,7 +12,7 @@
 from cubicweb import RegistryException
 from cubicweb.selectors import entity_implements
 from cubicweb.server import hook
-
+from cubicweb.sobjects.supervising import SupervisionMailOp
 
 class RenderAndSendNotificationView(hook.Operation):
     """delay rendering of notification view until precommit"""
@@ -135,5 +135,5 @@
             # missing required relation
             title = '#%s' % eid
         self._cw.transaction_data.setdefault('pendingchanges', []).append(
-            ('delete_entity', (self.eid, str(self.entity.e_schema), title)))
+            ('delete_entity', (self.entity.eid, str(self.entity.e_schema), title)))
         return True