Commit 9eafd29b authored by Sebastien Robin's avatar Sebastien Robin

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
parent 3cf59847
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment