From 9eafd29b9f3a0dd5cbe7e60e74e0ae2ce40e17de Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 16 Apr 2008 09:21:36 +0000 Subject: [PATCH] Do not try to send email to the user : - currently, this code do not work - usual users are not developpers, they don't understand traceback, path, method_id - users can not start again an activity git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20560 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/CMFActivity/ActivityTool.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/product/CMFActivity/ActivityTool.py b/product/CMFActivity/ActivityTool.py index 715928e03c..3c1b477887 100644 --- a/product/CMFActivity/ActivityTool.py +++ b/product/CMFActivity/ActivityTool.py @@ -257,12 +257,7 @@ class Message: def notifyUser(self, activity_tool, message="Failed Processing Activity"): """Notify the user that the activity failed.""" portal = activity_tool.getPortalObject() - user_email = None - user = portal.portal_membership.getMemberById(self.user_name) - if user is not None: - user_email = user.getProperty('email') - if user_email in ('', None): - user_email = portal.getProperty('email_to_address', + user_email = portal.getProperty('email_to_address', portal.getProperty('email_from_address')) mail_text = """From: %s To: %s -- 2.30.9