# HG changeset patch # User Sylvain Thénault # Date 1260291869 -3600 # Node ID f2e1bb4b75369e14ee60010da7460df402b29983 # Parent 5838a4b0766d1f910c7e3a9074e948358aaeeea4 should use match_rtype, not entity_implements in such cases diff -r 5838a4b0766d -r f2e1bb4b7536 hooks/bookmark.py --- a/hooks/bookmark.py Tue Dec 08 17:48:26 2009 +0100 +++ b/hooks/bookmark.py Tue Dec 08 18:04:29 2009 +0100 @@ -7,7 +7,6 @@ """ __docformat__ = "restructuredtext en" -from cubicweb.selectors import entity_implements from cubicweb.server import hook @@ -22,7 +21,7 @@ class DelBookmarkedByHook(hook.Hook): """ensure user logins are stripped""" __regid__ = 'autodelbookmark' - __select__ = hook.Hook.__select__ & entity_implements('bookmarked_by',) + __select__ = hook.Hook.__select__ & hook.match_rtype('bookmarked_by',) category = 'bookmark' events = ('after_delete_relation',)