sobjects/notification.py
branchtls-sprint
changeset 730 9062cdc140a9
parent 692 800592b8d39b
child 738 9b8cb1976992
--- a/sobjects/notification.py	Tue Feb 17 23:54:15 2009 +0100
+++ b/sobjects/notification.py	Tue Feb 17 23:54:30 2009 +0100
@@ -20,7 +20,6 @@
 from cubicweb import RegistryException
 from cubicweb.selectors import implements
 from cubicweb.common.view import EntityView, Component
-from cubicweb.common.registerers import accepts_registerer
 from cubicweb.common.mail import format_mail
 
 from cubicweb.server.pool import PreCommitOperation
@@ -36,8 +35,7 @@
     email addresses specified in the configuration are used
     """
     id = 'recipients_finder'
-    __registerer__ = accepts_registerer
-    __selectors__ = (implements('Any'),)
+    __select__ = implements('Any')
     user_rql = ('Any X,E,A WHERE X is EUser, X in_state S, S name "activated",'
                 'X primary_email E, E address A')
     
@@ -297,7 +295,7 @@
 
 class CardAddedView(NormalizedTextView):
     """get notified from new cards"""
-    __selectors__ = (implements('Card'),)
+    __select__ = implements('Card')
     content_attr = 'synopsis'