[Zope] TAL in tables

Chris Withers chrisw@nipltd.com
Sat, 17 Aug 2002 18:49:43 +0100


Hi Myroslav,

Please don't post in HTML.

Myroslav Opyr wrote:
> tal:attributes should look like attributes="class 
> string:row${python:minutes%60}in${step}". But TALES string: "${}" 
> substitute can contain only global-name or path only. 

So why not do it like this:

tal:attributes="class python:'row%sin%s' % (minutes%60,step);"

?

> Note that I am unable to use <tbody tal:repeat=...><tr tal:define=... 
> tal:attributes=...> trick due to other limitations. 

...then use <tal:x , which won't be output to browser.

cheers,

Chris