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

remove unneeded parts

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