[Zope3-dev] context/@@absolute_url

Guido van Rossum guido@python.org
Wed, 11 Dec 2002 11:02:03 -0500


> Guido van Rossum wrote:
> > In a recent checkin, I saw this idiom:
> > 
> > +    <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?

--Guido van Rossum (home page: http://www.python.org/~guido/)