--On Mittwoch, 20. April 2005 13:14 Uhr +0300 Vangelis Mihalopoulos <[EMAIL PROTECTED]> wrote:


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"
  <span tal:replace="options/data/0"></span>

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.


Attachment: pgpHvXiBrRqMD.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to