Commit d5932260 authored by Jérome Perrin's avatar Jérome Perrin

define __repr__ on ConsistencyMessage for easier debugging


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18362 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f6adfb1e
...@@ -66,4 +66,9 @@ class ConsistencyMessage(ObjectMessage): ...@@ -66,4 +66,9 @@ class ConsistencyMessage(ObjectMessage):
""" """
pass pass
def __repr__(self):
return "<ERP5Type.ConsistencyMessage for %s on %s (message: %s)>" % (
self.class_name, self.object_relative_url, self.getTranslatedMessage())
allow_class(ConsistencyMessage) allow_class(ConsistencyMessage)
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