Commit eac6b244 authored by Yusei Tahara's avatar Yusei Tahara

Revert my previous changes. It was a problem of activate method in ERP5Type/Base.py


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21039 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent affb62a9
...@@ -483,11 +483,7 @@ class EmailDocument(File, TextDocument): ...@@ -483,11 +483,7 @@ class EmailDocument(File, TextDocument):
attachment_list=attachment_list, attachment_list=attachment_list,
additional_headers=additional_headers) additional_headers=additional_headers)
mail_message = mime_message.as_string() mail_message = mime_message.as_string()
try:
self.activate(activity='SQLQueue').sendMailHostMessage(mail_message) self.activate(activity='SQLQueue').sendMailHostMessage(mail_message)
except TypeError:
# temporary document does not support activation.
self.MailHost.send(mail_message)
# Save one of mail messages. # Save one of mail messages.
self.setData(mail_message) self.setData(mail_message)
......
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