[ZODB-Dev] Analyzing the committed data during one transaction

Alan Runyan runyaga at runyaga.com
Mon Nov 17 12:20:37 EST 2008


On Mon, Nov 17, 2008 at 9:01 AM, Jim Fulton <jim at zope.com> wrote:
>
> On Nov 17, 2008, at 8:21 AM, Andreas Jung wrote:
> ...
>> Rephrasing my question in a different way: how can I get hold of the
>> "parent" object based a persistent object with a _p_jar
>> connection? E.g. when the ZODB commits a subobject (e.g. a BTree or
>> a bucket) of portal_catalog/Indexes/some_index then I would like to
>> get hold of the the related parent "first-class" Zope 2 object (e.g.
>> derived from SimpleItem/Item or something like that).
>
> There isn't a practical way to do that. (If you're willing to work
> very very very hard, you can iterate over a database and build up a
> reverese reference structure.)

FWIW: I've wanted to do this same thing before but found no toolchain
support and gave up.


More information about the ZODB-Dev mailing list