hooks/notification.py
changeset 4075 e710f4052bd6
parent 3536 f6c9a5df80fb
child 4307 7fba9c34c88f
--- a/hooks/notification.py	Wed Dec 09 12:24:38 2009 +0100
+++ b/hooks/notification.py	Wed Dec 09 12:41:05 2009 +0100
@@ -10,7 +10,7 @@
 from logilab.common.textutils import normalize_text
 
 from cubicweb import RegistryException
-from cubicweb.selectors import entity_implements
+from cubicweb.selectors import implements
 from cubicweb.server import hook
 from cubicweb.sobjects.supervising import SupervisionMailOp
 
@@ -37,7 +37,7 @@
 class StatusChangeHook(NotificationHook):
     """notify when a workflowable entity has its state modified"""
     __regid__ = 'notifystatuschange'
-    __select__ = NotificationHook.__select__ & entity_implements('TrInfo')
+    __select__ = NotificationHook.__select__ & implements('TrInfo')
     events = ('after_add_entity',)
 
     def __call__(self):