Commit 19ee9222 authored by Jérome Perrin's avatar Jérome Perrin

remove unneeded parts

parent 2e437c8d
...@@ -68,17 +68,13 @@ if not context.isTempDocument() and to_url is None:\n ...@@ -68,17 +68,13 @@ if not context.isTempDocument() and to_url is None:\n
use_activity = True\n use_activity = True\n
\n \n
if to_url is None:\n if to_url is None:\n
if use_activity:\n
recipient = context.getDestinationValue()\n
to_url_list.append(formataddr((recipient.getTitle(), recipient.getDefaultEmailText())))\n
else:\n
to_email_list = []\n
for recipient in context.getDestinationValueList():\n for recipient in context.getDestinationValueList():\n
email = recipient.getDefaultEmailText()\n email = recipient.getDefaultEmailText()\n
if email:\n if email:\n
to_email_list.append(email)\n
to_url_list.append(formataddr((recipient.getTitle(), recipient.getDefaultEmailText())))\n to_url_list.append(formataddr((recipient.getTitle(), recipient.getDefaultEmailText())))\n
else:\n else:\n
# MailMessage portal type is supposed to have a constraint to report this\n
# to the user earlier\n
raise ValueError("One email must be set to %s" % recipient.getRelativeUrl())\n raise ValueError("One email must be set to %s" % recipient.getRelativeUrl())\n
else:\n else:\n
to_url_list.append(to_url)\n to_url_list.append(to_url)\n
......
1064 1065
\ No newline at end of file \ No newline at end of file
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