[Zope] sequence-item: how do I use it in an expr?

Andy andy@agmweb.ca
Wed, 4 Apr 2001 08:01:56 -0700


Because its trying to take sequence away from item. Try:

<dtml-in builds>
     <dtml-call expr="prBuildInsertMethod(buildNo=_['sequence-item'])">
</dtml-in>

...and add yourself to the list of people who wonder why we cant have
sequence_item.

----- Original Message -----
From: "Gerrie Roos" <gerrie@trispen.com>
To: <zope@zope.org>
Sent: Wednesday, April 04, 2001 7:38 AM
Subject: [Zope] sequence-item: how do I use it in an expr?


> I know I ask a lot of silly questions, at least I'm learning...In the
> following snippet 'build' is a list of integers.  Now I want to do
> 'prBuildInsertMethod' with all the values in 'build'.  To the untrained
> eye, it seems like this should work.  But Zope can't find variable
> 'sequence'...why?  How do I do it then?
>
> <dtml-in builds>
>      <dtml-call expr="prBuildInsertMethod(buildNo=sequence-item)">
> </dtml-in>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>