[Zope3-Users] Re: Traversal Tricks (was Seeking Reference Guide on TAL/TALES/METAL)

jürgen Kartnaller juergen at kartnaller.at
Sun Apr 2 11:56:53 EDT 2006


Jeff Rush wrote:
> I need control over which namespace is searched, so I added a couple of
> generic TALES namespace adapters.  Now I can do:
> 
>   <h1 tal:content="context/attribute:name" />

How about :
<h1 tal:content="context/++attribute++name" />

> 
> to -only- search for a name attribute, and (less frequently):
> 
>   <h1 tal:content="context/item:ABC123" />

<h1 tal:content="context/++item++ABC123" />

See zope.app.traversing for other namespaces.

Jürgen



More information about the Zope3-users mailing list