[Zope-dev] getPhysicalPath?

Brian Lloyd brian@digicool.com
Fri, 16 Mar 2001 09:37:52 -0500


> >> Is there a simple method like getAcquistionPath() that tells 
> me how I was
> >> required without having to do some sub optimal REQUEST 
> variable hacking /
> >> string matching?
> >> 
> 
> I don't know of any (but that doesn't mean there isn't one).  But 
> couldn't you walk up the aq_parent?

Acquisition tip-o-the-day: you can use:

print object.aq_chain

The aq_chain attribute (computed at time of access) provides 
a list (in reverse order) of the objects in the acquisition 
path.

Hope this helps!


Brian Lloyd        brian@digicool.com
Software Engineer  540.371.6909              
Digital Creations  http://www.digicool.com