The following patch may be helpful to some of you for debugging. It collects in memory information about objects when they are loaded from the ZODB, so that when a ReadConflictError is raised, you can not only display the oid but also the chain of objects (and their id) that lead to it, in effect giving you its path.

There's a "print" that you can uncomment to see all objects loaded, for fun and maybe profit ;)


Feedback welcome.

Florent

Attachment: zodb-oid-debug.v2.patch
Description: Binary data



--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to