[Zope] Accessing root folder from PythonMethods

Michel Pelletier michel@digicool.com
Thu, 11 Nov 1999 13:02:46 -0500


Itamar Shtull-Trauring wrote:
> 
> I want to be able to access the root folder of Zope from a PythonMethod - is
> there any easier way than just going up a chain of aq_parent till you hit
> the end (what's aq_parent then, None?)?

Use PARENTS[-1], which is allways the root folder.

-Michel