[Zope-dev] Zope object oid's
Jason Spisak
444@hiretechs.com
Thu, 11 May 2000 23:02:24 GMT
Chris McDonough writes:
> 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
Is this unique for the interpretor session? Or is this oid constant for
that object and stroed in the FileStorage?
>
> I'm not sure how to answer the rest of your questions...
>
But they're so simple? Not.
> > 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
Thank you, thank you, thank you.
>
>
> > --
> > 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
All my best,
Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.