[Commits] (bkirsch) Added a str function to MailDeliveryError

commits at osafoundation.org commits at osafoundation.org
Mon Aug 23 15:31:01 PDT 2004


Commit by: bkirsch
Modified files:
chandler/parcels/osaf/contentmodel/mail/Mail.py 1.18 1.19

Log message:
Added a str function to MailDeliveryError

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/mail/Mail.py.diff?r1=text&tr1=1.18&r2=text&tr2=1.19

Index: chandler/parcels/osaf/contentmodel/mail/Mail.py
diff -u chandler/parcels/osaf/contentmodel/mail/Mail.py:1.18 chandler/parcels/osaf/contentmodel/mail/Mail.py:1.19
--- chandler/parcels/osaf/contentmodel/mail/Mail.py:1.18	Fri Aug 20 12:34:57 2004
+++ chandler/parcels/osaf/contentmodel/mail/Mail.py	Mon Aug 23 15:31:00 2004
@@ -1,8 +1,8 @@
 """ Classes used for Mail parcel kinds
 """
 
-__revision__  = "$Revision: 1.18 $"
-__date__      = "$Date: 2004/08/20 19:34:57 $"
+__revision__  = "$Revision: 1.19 $"
+__date__      = "$Date: 2004/08/23 22:31:00 $"
 __copyright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -222,6 +222,9 @@
             kind = MailParcel.getMailDeliveryErrorKind()
         super (MailDeliveryError, self).__init__(name, parent, kind)
 
+    def __str__(self):
+        return "Error Code: %d Error: %s Error Date: %s" % (self.errorCode, self.errorString, self.errorDate.strftime())
+
 
 class MailDeliveryBase(Item.Item):
     def __init__(self, name=None, parent=None, kind=None):



More information about the Commits mailing list