[Zope] list access

Jim Washington jwashin@vt.edu
Wed, 07 Mar 2001 08:11:53 -0500


Hi, Axel

<dtml-var "numbers[0]">

which is short for

<dtml-var expr="numbers[0]">

You need to quote python expressions.

-- Jim Washington

Axel Missbach wrote:
> 
> Hello,
> please tell me how access an list member in a dtml-Method/ Document.
> 
> per Example, having a list numbers[7,11,13,17,19]. How to get the first
> item?
> 
> <dtml-var numbers[0]> results in a KeyError! Why?