Annakan wrote:
And I really do not see why the python:test is failling exept if there was a
change preventing its use in plone recently.
I did not find any such information on the web site though.
It must be something really obvious but I do not see it.
Hi,
'test' builtin is not available in browser view. Your template is
browser view based, according to its path:
QeF\QeFContent\browser\square_view.pt
The best solution is move your expression to the browser view class and
call particular view method from your template.
Another option is to use python construct:
python:expression and 'TrueValue' or 'FalseValue', for example:
tal:attributes="class python:isOdd and 'odd' or 'even'"
instead of
tal:attributes="class python:test(isOddm'odd','even')"
HTH
--
Radim Novotny
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers