[Zope] Python and Zope Question

Kevin Dangoor kid@kendermedia.com
Fri, 2 Jun 2000 10:29:44 -0400


If object1 has a unique name in your acquisition path, you can get to it
simply through
self.object1.object2.object3

Otherwise, you can use PARENTS. I *think* you can get to the PARENTS list
via the REQUEST variable (so make sure you have REQUEST as a parameter in
your method).

REQUEST['PARENTS'][-1].object1.object2.object3

Kevin

----- Original Message -----
From: "Scott Burton" <scott@launchpoint.net>
To: "Kevin Dangoor" <kid@kendermedia.com>
Sent: Friday, June 02, 2000 12:21 AM
Subject: Re: [Zope] Python and Zope Question


> Thanks for the quick responses Kevin and R. David Murray! That did the
> trick. Now here is another quick one. How would I access an object from
the
> root-level? As in root.object1.object2.object3?