From eac6b244db913b9f4c9a72c3de0a3d53424ffaab Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Tue, 20 May 2008 16:47:20 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/EmailDocument.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/product/ERP5/Document/EmailDocument.py b/product/ERP5/Document/EmailDocument.py index 0a515a8a14..edfb023721 100644 --- a/product/ERP5/Document/EmailDocument.py +++ b/product/ERP5/Document/EmailDocument.py @@ -483,11 +483,7 @@ class EmailDocument(File, TextDocument): attachment_list=attachment_list, additional_headers=additional_headers) mail_message = mime_message.as_string() - try: - self.activate(activity='SQLQueue').sendMailHostMessage(mail_message) - except TypeError: - # temporary document does not support activation. - self.MailHost.send(mail_message) + self.activate(activity='SQLQueue').sendMailHostMessage(mail_message) # Save one of mail messages. self.setData(mail_message) -- 2.30.9