[Zope] Parameter passing
Dieter Maurer
dieter@handshake.de
Wed, 18 Sep 2002 20:43:45 +0200
Dag Nygren writes:
> I got the impression that SUBMIT:ing a form will
> automatically pass on the variables used in the
> original form to the target item.
Your impression is correct.
> However my experiments doesn't seem to do that.
What happens? What are your experiments.
The parameter passing is an essential task of ZPubllisher,
more precisely its "mapply" function. It works very reliable.
Probably, your experiments are slightly wrong.
> Is there another way of doing this than the URL?para=something ?
Submitting a form with method="GET" (the default) is equivalent
to a "URL?c1=v1&c2=v2&...".
You may want to look either at "REQUEST" (display it in the target
(action) page) or in "var/Z2.log" (the ZServer Log file).
Experiment with "method=GET" (until everything works as expected)
because,then, you see the parameters in the ZServer log file.
Dieter