should not use named args for req and rset when selecting tls-sprint
authorsylvain.thenault@logilab.fr
Fri, 20 Feb 2009 01:14:40 +0100
branchtls-sprint
changeset 877 decb67772c92
parent 876 f652660ae9a6
child 878 1b5f2068743e
should not use named args for req and rset when selecting
sobjects/notification.py
--- a/sobjects/notification.py	Fri Feb 20 01:14:15 2009 +0100
+++ b/sobjects/notification.py	Fri Feb 20 01:14:40 2009 +0100
@@ -135,8 +135,7 @@
     msgid_timestamp = True
     
     def recipients(self):
-        finder = self.vreg.select_component('recipients_finder',
-                                            req=self.req, rset=self.rset)
+        finder = self.vreg.select_component('recipients_finder', self.req, self.rset)
         return finder.recipients()
         
     def subject(self):
@@ -175,8 +174,7 @@
         self._kwargs = kwargs
         recipients = self.recipients()
         if not recipients:
-            self.info('skipping %s%s notification which has no recipients',
-                      self.id, self.accepts)
+            self.info('skipping %s notification, no recipients', self.id)
             return
         if not isinstance(recipients[0], tuple):
             from warnings import warn