cleanup
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 30 Jul 2009 20:01:05 +0200
changeset 50 6a76822089d7
parent 49 6698d7177dd0
child 51 d952ecde4fcb
cleanup
hooks.py
--- a/hooks.py	Thu Jul 30 20:01:00 2009 +0200
+++ b/hooks.py	Thu Jul 30 20:01:05 2009 +0200
@@ -142,11 +142,12 @@
     __select__ = implements('Keyword')
     content_attr = 'name'
     msgid_timestamp = True
-
+    # XXX use a proper recipients finder
     def recipients(self):
-        dests = [add for add, in self.req.execute('Any A WHERE X is CWUser, X in_group G,'
-                                                  'G name "managers", X in_state S, S name "activated",'
-                                                  'X primary_email E, E address A')]
+        dests = [add for add, in self.req.execute(
+            'Any A WHERE X is CWUser, X in_group G,'
+            'G name "managers", X in_state S, S name "activated",'
+            'X primary_email E, E address A')]
         if not dests:
             dests = self.config['default-dest-addrs']
         return [(add, 'fr') for add in dests]