[ZODB-Dev] resolve oid to object?

Paul Winkler pw_lists at slinkp.com
Tue Jan 6 21:18:12 EST 2004


In a zope debugging session using ZEO, is there a way to 
load a persistent object if I know its zodb OID?

I did some googling and found an old message to this list
from Toby Dickenson, suggesting to use storage.load(oid).
But as documented, ClientStorage.load(oid, version)
gives back a pickle. Example:

>>> oid = app._p_oid
>>> obj = app._p_jar._storage.load(oid)

In this example, obj is some raw pickle data.
I was hoping for the result to be that obj is app.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's GANGSTA SKULL!
(random hero from isometric.spaceninja.com) 



More information about the ZODB-Dev mailing list