[Zope] how to "call" sequence-item

Chris Withers chrisw@nipltd.com
Tue, 10 Oct 2000 16:37:38 +0100


Joachim Schmitz wrote:
> <dtml-call "REQUEST.set('bild',_['sequence-item'])">

Here's your problem, thanks to _'s 'itneresting' implementation of
__getitem__...

...what you really want is:

<dtml-call "REQUEST.set('bild',_.getitem('sequence-item',0))">

cheers,

Chris