[Zope] How to access Zope root in Script (Python)

Chris Withers chrisw@nipltd.com
Fri, 29 Nov 2002 16:16:56 +0000


Oliver Bleutgen wrote:
> """Return the object obtained by traversing the given path from the 
> object on which the method was called, performing security checks along 
> the way.
> 
> If an object is not found then the default argument will be returned."""

...but that's perfectly accurate, think of it in terms of directories

c:\zope\folder> cd \
root.zope.folder.restrictedTraverse('/')

Traversing from something doesn't only mean going further down the tree ;-)

cheers,

Chris