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

define a __repr__ method on IndexableObjectWrapper containing the path of the...

define a __repr__ method on IndexableObjectWrapper containing the path of the wrapped object, otherwise logs like """uid of <Products.ERP5Catalog.CatalogTool.IndexableObjectWrapper object at 0x7a1b210> changed from 19195L to 19191L as old one is assigned to /erp5/organisation_module/27 in catalog !!! This can be fatal. You should reindex the whole site immediately.""" are not usefull.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23562 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ed2fead
......@@ -166,6 +166,10 @@ class IndexableObjectWrapper(CMFCoreIndexableObjectWrapper):
add(prefix + ':' + role)
return list(allowed)
def __repr__(self):
return '<Products.ERP5Catalog.CatalogTool.IndexableObjectWrapper'\
' for %s>' % ('/'.join(self.__ob.getPhysicalPath()), )
class RelatedBaseCategory(Method):
"""A Dynamic Method to act as a related key.
......
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