[Zope] Passing a variable number of parameters to a Python script
Bruce Pearson &/or Gwyn Ingham
BruceP@wn.com.au
Mon, 28 May 2001 09:56:23 +0800
Hi,
I wonder if anyone can help me.
I have a python script in which I want to accept a variable number of
parameters from a post method.
ie http://Localhost:8080/apply?count=2¶m0=abc¶m1=xyz
or
http://Localhost:8080/apply?count=4¶m0=abc¶m1=123¶m2=rst¶m3=
xyz
I want to access the parameters as a list something like this:
PythonScript
apply(count, *args)
print count
for arg in args
print arg
Thanks
Bruce.