Wade Leftwich wrote:
I'm trying to put together an External Method that needs to operate on several different objects within the ZDB (a/k/a ZODB, BoboPOS).
How do I specify an object ID and retrieve the relevant object? sorry to be obtuse, but I can't find an example anyplace. In the online docs
If I have a URL like '/manny/moe/jack', I know that from within the top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'.
But if the context is jack, how do I specify the top level so I can talk about manny?
The top-level object is the 'app' attribute in the Main module. Note, however, that this will change in ZODB3. import Main Main.app.manny Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org 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.