[Zope] Acquiring A subfoldere'd item

Small Business Services toolkit at magma.ca
Wed Mar 10 20:25:07 EST 2004


From: "Roy Rapoport" <r.rapoport at fi.com>
> Imagine this directory structure:
> /
> /foobar.pt
> /foo
> /foo/bar.pt
> /baz
> /baz/alpha
> /baz/alpha/beta.ps
> 
> If I'm in beta.ps and want to invoke foobar.pt, I can simply refer to
> context['foobar.pt'] and let acquisition take care of the rest.
> 
> I'm looking for a way, however, from within beta.ps, to refer to bar.pt.
> Unfortunately, context['foo/bar.pt'] doesn't quite seem to do it.

how about:  restrictedTraverse('/foo/bar.pt')  ?


Jonathan




More information about the Zope mailing list