[Zope] TAL in tables

Myroslav Opyr myroslav@zope.net.ua
Sun, 18 Aug 2002 01:13:51 +0300


Chris Withers wrote:

> Please don't post in HTML.=20

ok.

> Myroslav Opyr wrote:
>
>> tal:attributes should look like attributes=3D"class=20
>> string:row${python:minutes%60}in${step}". But TALES string: "${}"=20
>> substitute can contain only global-name or path only.=20
>
>
> So why not do it like this:
>
> tal:attributes=3D"class python:'row%sin%s' % (minutes%60,step);"
>
> ?=20

I dunno, why not... :) It look like I was trying to make everything out=20
of string: tales expression.

>> Note that I am unable to use <tbody tal:repeat=3D...><tr tal:define=3D=
...=20
>> tal:attributes=3D...> trick due to other limitations.=20
>
> ...then use <tal:x , which won't be output to browser.=20

This is not documented in standard Help of Page Templates product, but=20
should be... Threre are only PageTemplates/tests/input/Loop2.html and=20
PageTemplates/www/ptEdit.zpt which take use of the construct...

Thanks,

m.
--=20
Myroslav Opyr
zope.net.ua <http://zope.net.ua/> =9C Ukrainian Zope Hosting
e-mail: myroslav@zope.net.ua <mailto:myroslav@zope.net.ua>
cell: +380 50.3174578