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
What is this supposed to return? str() on it returns a one-character long string.
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
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.