[Zope] How do I specify a list element?

Tino Wildenhain tino@wildenhain.de
Thu, 06 Jul 2000 07:17:39 +0200


asjf11@uaa.alaska.edu wrote:
> 
> I have a list (I think) created this way:
> 
> (date = '31-DEC-1999')
> 
> <dtml-call "REQUEST.set('MyList', _.string.split(date, '-'))">
> 
> so now REQUEST['MyList'] should contain 3 elements:
> 31 DEC 1999
> 
> How, in dtml, do I say "give me the value of the 1st element of MyList" or
> the second or third.
> 
> I've tried <dtml-var "REQUEST['MyList'][0]"> but I get this error:
> 
actually it is <dtml-var "MyList[0]"> you were pretty close :-)

Tino Wildenhain