[Zope-dev] Zope object oid's

Chris McDonough chrism@digicool.com
Thu, 11 May 2000 18:26:25 -0400


Jason Spisak wrote:
> 
> Zopesters,
> 
> Do zope objects have oid's at some low level?  I believe I remember
> seeing it somewhere on how to retrieve them.  I am curious as to how the
> ZODB knows the given state of an object. Does is ask the storage for the
> oid?  In looking at the current implementation in DB.py, I imagine that
> only one storage is allowed.  Would it be possible to load a single
> storage that was actually a python object used for the root that
> maintained a collection of files?

Yep.  You can get the oid of an object from python

oid = object._p_oid

I'm not sure how to answer the rest of your questions...
 
> BTW, I have been looking for the RelationalStorage/MultiFileStorage Wiki
> to no avail.  It's not at WikiCentral.

Whoops.  I'll add it.  It's at http://www.zope.org/Members/jim/ZODB

 
> --
> Jason Spisak
> 444@hiretechs.com
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )

-- 
Chris McDonough
Digital Creations
Publishers of Zope - http://www.zope.org