cubicweb/sobjects/notification.py
changeset 11143 ebb6809659a4
parent 11057 0b59724cb3f2
child 11767 432f87a63057
--- a/cubicweb/sobjects/notification.py	Wed Jan 27 08:35:51 2016 +0100
+++ b/cubicweb/sobjects/notification.py	Tue Jan 26 18:04:00 2016 +0100
@@ -50,9 +50,7 @@
         mode = self._cw.vreg.config['default-recipients-mode']
         if mode == 'users':
             execute = self._cw.execute
-            dests = [(u.cw_adapt_to('IEmailable').get_email(),
-                      u.property_value('ui.language'))
-                     for u in execute(self.user_rql, build_descr=True).entities()]
+            dests = list(execute(self.user_rql, build_descr=True).entities())
         elif mode == 'default-dest-addrs':
             lang = self._cw.vreg.property_value('ui.language')
             dests = zip(self._cw.vreg.config['default-dest-addrs'], repeat(lang))