[Zope] Pass index in a TAL path expr

2005-04-20 Thread Vangelis Mihalopoulos
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 htmlbody span tal:replace=options/data/0/span /body/html The above example give out a TypeError for the index...

Re: [Zope] Pass index in a TAL path expr

2005-04-20 Thread Andreas Jung
--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 htmlbody span