[Zope] restrictedTraverse - yay! :-)
Steve Alexander
steve@cat-box.net
Fri, 15 Sep 2000 16:29:15 +0100
Dennis Nichols wrote:
>
> At 9/15/00 10:05 AM, Chris Withers wrote:
> >So:
> >
> ><dtml-var "restrictedTraverse('slash/delimited/path')" absolute_url>
> >
> >will work as I expect it to?
>
> Well, I don't know what you expect :-) When I try to save such a construct
> with the handy-dandy Change button I get
>
> Document Template Parse Error
> Invalid attribute name, "absolute_url", for tag <dtml-var
> "restrictedTraverse(choice)" absolute_url> ...
Yeah. That's right. There is no attrubute absolute_url.
There is, however, a method absolute_url().
This should do what you expect:
<dtml-var "restrictedTraverse('slash/delimited/path').absolute_url()">
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net