From 0ced160c7e4c287856182bdc002d2aa425f76ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 23 Aug 2013 13:47:10 +0200 Subject: [PATCH] get email property from user profile instead of reconstructing it --- AvisSimplif.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AvisSimplif.py b/AvisSimplif.py index 7903f32..a862332 100644 --- a/AvisSimplif.py +++ b/AvisSimplif.py @@ -838,7 +838,8 @@ class AvisSimplif(BaseContent, AvisOdt): return userInfo.getProperty('fullname').decode('latin-1') def getUserEmail(self): - return '%s@easi.wallonie.be' % self.Creator() + userInfo = self.portal_membership.getMemberById(self.Creator()) + return userInfo.getProperty('email').decode('latin-1') # Methods for getting default answers to questions ------------------------- def defodelaiOrdre(self, delaiOrdreCP):