Commit 28241b3a authored by Jérome Perrin's avatar Jérome Perrin

Added a debug method to return the object _p_oid in a readable form.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5534 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 112770ee
...@@ -485,6 +485,13 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -485,6 +485,13 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
""" """
return self._p_oid return self._p_oid
def getOidRepr(self):
"""
Return ODB oid, in an 'human' readable form.
"""
from ZODB.utils import oid_repr
return oid_repr(self._p_oid)
# Utils # Utils
def _getCategoryTool(self): def _getCategoryTool(self):
return aq_inner(self.getPortalObject().portal_categories) return aq_inner(self.getPortalObject().portal_categories)
......
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