web/views/massmailing.py
branchtls-sprint
changeset 742 99115e029dca
parent 640 8e64f12be69c
child 984 536e421b082b
--- a/web/views/massmailing.py	Wed Feb 18 00:48:24 2009 +0100
+++ b/web/views/massmailing.py	Wed Feb 18 01:21:25 2009 +0100
@@ -19,7 +19,7 @@
 class SendEmailAction(Action):
     category = 'mainactions'
     # XXX should check email is set as well
-    __selectors__ = (implements(IEmailable), match_user_groups('managers', 'users'))
+    __select__ = implements(IEmailable) & match_user_groups('managers', 'users')
 
     id = 'sendemail'
     title = _('send email')
@@ -34,7 +34,7 @@
 
 class MassMailingForm(EntityView):
     id = 'massmailing'
-    __selectors__ = (implements(IEmailable), match_user_groups('managers', 'users'))
+    __select__ = implements(IEmailable) & match_user_groups('managers', 'users')
 
     form_template = u"""
 <div id="compose">