[Erp5-report] r32353 jerome - /erp5/trunk/products/ERP5/Document/MailMessage.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 9 13:48:25 CET 2010


Author: jerome
Date: Tue Feb  9 13:48:25 2010
New Revision: 32353

URL: http://svn.erp5.org?rev=32353&view=rev
Log:
remove duplicated methods

Modified:
    erp5/trunk/products/ERP5/Document/MailMessage.py

Modified: erp5/trunk/products/ERP5/Document/MailMessage.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/MailMessage.py?rev=32353&r1=32352&r2=32353&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/MailMessage.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/MailMessage.py [utf8] Tue Feb  9 13:48:25 2010
@@ -72,27 +72,6 @@
                     , PropertySheet.MailMessage
                     )
 
-  def getReplyBody(self):
-    """
-      This is used in order to respond to a mail,
-      this put a '> ' before each line of the body
-    """
-    reply_body = ''
-    body = self.getBody()
-    if type(body) is type('a'):
-      reply_body = '> ' + body.replace('\n', '\n> ')
-    return reply_body
-
-  def getReplySubject(self):
-    """
-      This is used in order to respond to a mail,
-      this put a 'Re: ' before the orignal subject
-    """
-    reply_subject = self.getTitle()
-    if reply_subject.find('Re: ') != 0:
-      reply_subject = 'Re: ' + reply_subject
-    return reply_subject
-
   def send(self, from_url=None, to_url=None, msg=None, subject=None):
     """
       Sends a reply to this mail message.




More information about the Erp5-report mailing list