[Zope3-dev] context/@@absolute_url
Marius Gedminas
mgedmin@codeworks.lt
Wed, 11 Dec 2002 18:39:05 +0200
On Wed, Dec 11, 2002 at 11:31:28AM -0500, Guido van Rossum wrote:
> > > > 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?
> >
> > As I recall the original discussion, one of the arguments in favor of
> > the @@ notation was that it was (human) language nuetral.
>
> This was in a snippet of Python code, not in a page template. Python
> code is not human language neutral.
If you are refering to the bit in ComponentConfigItemEdit.pt that I
checked int to a branch recently, then it was in a page template. I
copied the thingy/@@absolute_url idiom from a couple of lines down,
where thingy was different from context. I just didn't know enough
about the meaning of @@ to replace it with views/absolute_url.
Marius Gedminas
--
Bumper sticker: Alcohol and calculus don't mix. Never drink and derive.