From b53d3da99dfacc21059e177803bd938243f24499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl> Date: Fri, 2 Feb 2007 10:20:07 +0000 Subject: [PATCH] set default empty header and body attributes to avoid AttributeError in object creation git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12516 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/MailMessage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/ERP5/Document/MailMessage.py b/product/ERP5/Document/MailMessage.py index 0e315e3edb..2172451e33 100644 --- a/product/ERP5/Document/MailMessage.py +++ b/product/ERP5/Document/MailMessage.py @@ -88,6 +88,10 @@ class MailMessage(Event, CMFMailInMessage): , PropertySheet.MailMessage ) + # default empty attributes + header = '{}' + body = '' + ####### TODO: support attachments !!!! # def __init__(self, *args, **kw): # XMLObject.__init__(self, *args, **kw) -- GitLab