Hi again, and thanks to Dieter for giving a pointer to his excellent chapter on parameters in Zope, this is what I wasmissing in the "Official" Zopebook. One question remains though: I got the impression that SUBMIT:ing a form will automatically pass on the variables used in the original form to the target item. However my experiments doesn't seem to do that. Is there another way of doing this than the URL?para=something ? I don't really want to show the internal parameters in the URL.... BRGDS -- Dag Nygren email: dag@newtech.fi Oy Espoon NewTech Ab phone: +358 9 8024910 Träsktorpet 3 fax: +358 9 8024916 02360 ESBO Mobile: +358 400 426312 FINLAND
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
participants (2)
-
Dag Nygren -
Dieter Maurer