[Zope-dev] relations in objects

Bjorn Stabell bjorn at exoweb.net
Fri Oct 10 05:51:50 EDT 2003


> From: Paul Winkler [mailto:pw_lists at slinkp.com] 
>> On Thu, Oct 09, 2003 at 08:46:24PM -0700, Jason Corbett wrote:
>> How does an object in zope know where it sits in the hirearchy,
> 
> The only unique identifier that zope provides is
> the containment path. An object can tell you its containment 
> path by doing foo.absolute_url(1) or foo.getPhysicalPath() 
> depending on what form you  want the output in.

I am often confused by this as well.  I think, however, that you can
also reach objects by its "object id" oid.  If I just use simple
assignment of a variable to an object in Zope, I get that object's oid,
right?



More information about the Zope-Dev mailing list