[Zope] Return a variable number of objects / ZGDChart
Dieter Maurer
dieter@handshake.de
Mon, 30 Apr 2001 18:58:30 +0200 (CEST)
belen@netcom.no writes:
> I am trying to return this variable number of lists.
>
> <dtml-return "(x, y1, y2, y3,...., yn)" >
> ...
> The matter is that n is not fixed ...
You build the list incrementally, like this:
<dtml-call "REQUEST.set('myList',[])">
....
<dtml-call "myList.append(x)">
....
<dtml-call "myList.append(y1)">
....
and so on, until you are satisfied with the list.
Then
<dtml-return myList>
Dieter