Commit 42eba846 authored by Yusei Tahara's avatar Yusei Tahara

Add __repr__ method to Message class to display original message.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38860 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 253fed91
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment