[Zope] Re: passing lists as function parameters

Josef Meile josef.meile@imes.mavt.ethz.ch
Fri, 08 Nov 2002 19:50:17 +0100


> Or if I test the script with the following value for the parameter -
> [1,2,3,4,5] - I get:
I guess, you're using the "test" tab from the manage interface. The
problem is that no matter what you introduce there, it's always being
taken as a string. There is no way at that point to tell Zope that
you're passing a list.

To really test your script you have to create a
dtml-method and call the script:

<dtml-var "foo([1,2,3,4,5])">

Regards,
Josef.