[Zope] Embedding absolute_url in TAL Syntax

Max M maxm@mxm.dk
Fri, 07 Jun 2002 14:12:09 +0200


Chris Withers wrote:

>
>You want:
>
><td><a href="dummy" tal:attributes="href item/absolute_url"
>                    tal:content="item/title">Dummy Title</a></td>
>

I can't help to wonder why there isn't a common "function" for an idiom 
as comon as this ... neither in dtml nor Zpt.

It's a rather longwinded way of writing something that should be as 
simple as "obj.abs_url_2_html()"

regards Max M