hooks/notification.py
changeset 5877 0c7b7b76a84f
parent 5693 8af6623f3d4e
child 6142 8bc6eac1fac1
--- a/hooks/notification.py	Fri Jul 02 19:14:48 2010 +0200
+++ b/hooks/notification.py	Mon Jul 05 12:04:32 2010 +0200
@@ -22,7 +22,7 @@
 
 from logilab.common.textutils import normalize_text
 
-from cubicweb.selectors import implements
+from cubicweb.selectors import is_instance
 from cubicweb.server import hook
 from cubicweb.sobjects.supervising import SupervisionMailOp
 
@@ -49,7 +49,7 @@
 class StatusChangeHook(NotificationHook):
     """notify when a workflowable entity has its state modified"""
     __regid__ = 'notifystatuschange'
-    __select__ = NotificationHook.__select__ & implements('TrInfo')
+    __select__ = NotificationHook.__select__ & is_instance('TrInfo')
     events = ('after_add_entity',)
 
     def __call__(self):