[Zope] restrictedTraverse - yay! :-)

Chris Withers chrisw@nipltd.com
Fri, 15 Sep 2000 10:05:30 +0100


Steve Alexander wrote:
> > > You can use restrictedTraverse('slash/delimited/path')
> >
> > AFAIK, that's not available in DTML...
> >
> > Am I wrong?
> 
> You're wrong.

Yay! :-)

I guess that takes away a lot of the need for &dtml-/folder/object;

So:

<dtml-var "restrictedTraverse('slash/delimited/path')" absolute_url>

will work as I expect it to?

cool,

Chris

PS: Has your patch to allow &dtl.url-/folder/object; made any progress
into the Zope core yet?
Whiel the aboev works, your patch is a lot less RSI-inducing... :-)