Chris Withers wrote:
Please don't post in HTML.
ok.
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);"
?
I dunno, why not... :) It look like I was trying to make everything out of string: tales expression.
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.
This is not documented in standard Help of Page Templates product, but should be... Threre are only PageTemplates/tests/input/Loop2.html and PageTemplates/www/ptEdit.zpt which take use of the construct... Thanks, m. -- Myroslav Opyr zope.net.ua <http://zope.net.ua/> ° Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua <mailto:myroslav@zope.net.ua> cell: +380 50.3174578