You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using persistent < 4.4 the __repr__ of Zope objects contained the physical path of the object. Now it contains way more technical information about the OID and the connection. This breaks especially doctests and does not seem to be helpful in 80 % of the use cases where the physical path contains way more information than the OID.
Suggested solution:
Add a __repr__ method to OFS.SimpleItem to restore the physical path.
With #392 I set _p_repr as suggested by @jamadden in plone/Products.CMFPlone#2590 (comment). With this we only need to add PathReprProvider to OFS.SimpleItem.Item. We might even move it to the end of the base-classes and no longer need to inherit from Base.
When using
persistent < 4.4
the__repr__
of Zope objects contained the physical path of the object. Now it contains way more technical information about the OID and the connection. This breaks especially doctests and does not seem to be helpful in 80 % of the use cases where the physical path contains way more information than the OID.Suggested solution:
__repr__
method toOFS.SimpleItem
to restore the physical path.References:
__repr__
changes of Zope objects plone/Products.CMFPlone#2547The text was updated successfully, but these errors were encountered: