diff --git a/hooks.py b/hooks.py index 3ff4f114dec1505488b8bc465d25d5253022f051_aG9va3MucHk=..8a1d646165902417ecc30ed3cc8489edee859190_aG9va3MucHk= 100644 --- a/hooks.py +++ b/hooks.py @@ -7,6 +7,7 @@ __docformat__ = "restructuredtext en" from cubicweb import RegistryException -from cubicweb.sobjects.notification import NotificationView +from cubicweb.selectors import implements +from cubicweb.sobjects import notification @@ -11,5 +12,5 @@ -class CommentAddedView(NotificationView): +class CommentAddedView(notification.NotificationView): """get notified from new comments""" id = 'notif_after_add_relation_comments' @@ -14,6 +15,6 @@ """get notified from new comments""" id = 'notif_after_add_relation_comments' - accepts = ('Comment',) + __select__ = implements('Comment',) msgid_timestamp = False def subject(self):