sobjects/notification.py
changeset 5556 9ab2b4c74baf
parent 5512 e23d681193cd
child 6807 7330d1fa02dd
--- a/sobjects/notification.py	Thu May 20 20:47:13 2010 +0200
+++ b/sobjects/notification.py	Thu May 20 20:47:55 2010 +0200
@@ -46,7 +46,8 @@
         mode = self._cw.vreg.config['default-recipients-mode']
         if mode == 'users':
             execute = self._cw.execute
-            dests = [(u.get_email(), u.property_value('ui.language'))
+            dests = [(u.cw_adapt_to('IEmailable').get_email(),
+                      u.property_value('ui.language'))
                      for u in execute(self.user_rql, build_descr=True).entities()]
         elif mode == 'default-dest-addrs':
             lang = self._cw.vreg.property_value('ui.language')