--On Mittwoch, 20. April 2005 13:14 Uhr +0300 Vangelis Mihalopoulos <[EMAIL PROTECTED]> wrote:
Hello,
if "data" is a tuple (or list), how can directly access it's contents using path expressions, like in:
-- script "s": return context.t(data=("one", "two", "three"))
-- template "t" <html><body> <span tal:replace="options/data/0"></span> </body></html>
The above example give out a TypeError for the index... "options/data/0" is not correct. What should i set the path to?
You have to use python: data[0]. Your notation is not supported.
-aj
pgpHvXiBrRqMD.pgp
Description: PGP signature
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )