[Zope3-dev] context/@@absolute_url

Steve Alexander steve@cat-box.net
Wed, 11 Dec 2002 16:18:47 +0000


>>+    <a href="configure/42"
>>+       tal:attributes="href context/@@absolute_url">
>>
>>Can anyone explain the context/@@absolute_url idiom?  Is it similar to
>>view/absolute_idiom?
> 
> The '@@' bit means 'the following path segment is to be interpreted as 
> the name of a view'. The '@@' looks a bit like a pair of comic-book eyes.
> 
> So, this is just the same as 'views/absolute_url'.
> 
> Then is there any reason not to use the latter?

In this case, no. The latter is better.


Note the difference between "views/..." and "view/...". Of these, the 
former gets things from the views namespace. The latter gets attributes 
on the view class.

--
Steve Alexander