[Zope] python expression in tal:attributes

Andreas Jung lists at zopyx.com
Wed Aug 30 07:23:21 EDT 2006



--On 30. August 2006 04:18:53 -0700 Ferhat Ayaz <ferhatayaz at yahoo.com> 
wrote:

>
> this is _of course_ not working because of
> ${python:item[0]}. It's illegal.

Why don't you use a tal:define inside the same tag to bind the value of 
this expression to a variable  and use this variable inside tal:attributes 
instead?

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060830/b56fcc86/attachment.bin


More information about the Zope mailing list