[Erp5-report] r38860 yusei - /erp5/trunk/products/ERP5Type/Message.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 4 11:26:20 CEST 2010


Author: yusei
Date: Mon Oct  4 11:26:17 2010
New Revision: 38860

URL: http://svn.erp5.org?rev=38860&view=rev
Log:
Add __repr__ method to Message class to display original message.

Modified:
    erp5/trunk/products/ERP5Type/Message.py

Modified: erp5/trunk/products/ERP5Type/Message.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Message.py?rev=38860&r1=38859&r2=38860&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Message.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Message.py [utf8] Mon Oct  4 11:26:17 2010
@@ -164,6 +164,9 @@ class Message(Persistent):
 
     return message
 
+  def __repr__(self):
+    return "<ERP5Type.Message.Message for %r>" % self.message
+
   def __str__(self):
     """
     Return the translated message as a string object.




More information about the Erp5-report mailing list