[Zope] Pass index in a TAL path expr
Vangelis Mihalopoulos
mihalop at vtrip.net
Wed Apr 20 06:14:15 EDT 2005
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?
More information about the Zope
mailing list