-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeff Shell wrote:
> We encountered a problem during an export/import in a Zope 3 based
> application that resulted in something not being importable. This is
> from our very first Zope 3 based application, and I stumbled across
> some very old adapter/utility registrations that I thought I had
> cleared out. There are references to `zope.interface.adapter.Null`
> which haven't been around for years. This is in an old
> `LocalAdapterRegistry` which, again, I thought I had removed along
> time ago. These objects and what they reference are not part of our
> normal object graph, and I was surprised to see them.
> 
> Given an oid, how can I trace what references that object/oid? There
> is something in our normal object hierarchy retaining a reference,
> but I don't know how to find it, and imagine that trying to
> investigate/load the objects from the ZODB level will help me find
> the culprit.
> 
> Are there low level deletion tools in the ZODB to delete individual
> objects?

Hmm, maybe you could hack a dummy version of
'zope.inteface.adapter.Null' back into place, and set a breakpoint
inside its __setstate__?  Just a thought.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvJbEUACgkQ+gerLs4ltQ4kRQCgkfoqc/n3HNVetNr0Iz68I5mn
ciwAoMAkXTLIUiFLjI8q85z4/mLYOrSA
=U5u1
-----END PGP SIGNATURE-----

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

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

Reply via email to