[Zope-dev] Re: [Zope3-dev] Re: Re: RFC: TALES adapters and TAL/Tales variable namespaces

Marius Gedminas mgedmin at b4net.lt
Thu May 27 17:32:39 EDT 2004


On Thu, May 27, 2004 at 03:55:23PM -0500, Garrett Smith wrote:
> > So, we could also use something like:
> >
> >   content/++adapter++dc/title
> >
> > but I think people want something more concide for ZPT.
> 
> I prefer this notation, even though it's more verbose. I think it should 
> be supported along with a short cut syntax.
> 
> This problem seems analogous to view lookup -- 
> "content/++view++index.html" and "content/@@index.html" are equivalent.
> 
> So, applied to adapters, we could use:
> 
>   content/++adapter++dc/title (or '++adapt++')
> 
> one could use:
> 
>   content/##dc/title
> 
> or perhaps (yuckier):
> 
>   content/**dc/title
> 
> I'd hate to see Yet Another Traversal Syntax introduced when we already 
> have a decent pattern established.

I like this train of thought.  Today I brainstormed

  content/::dc/title

on IRC.  I'm not entirely sure why, but adaptation and the ':' character
seem to be related in my mind.

Marius Gedminas
-- 
Never be afraid to tell the world who you are.
                -- Anonymous
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20040528/da9a9d91/attachment.bin


More information about the Zope-Dev mailing list