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" <[EMAIL PROTECTED]>
To: "Kevin Dangoor" <[EMAIL PROTECTED]>
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?



_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to