[Zope] Calling a method with form data in POST mode from python script

Dieter Maurer dieter@handshake.de
Tue, 12 Feb 2002 21:55:13 +0100


Gilles Lenfant writes:
 > I don't know how to do a significant short title for that problem ;-))
 > So the subject is the question...
When you read

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>

you will learn (Web publishing section), that Zope normalizes
the request. There is no (only an insignificant) difference
between GET and POST methods.

That said, you question seems a bit confused to me.

Apparently, your form action is a Python Script.
When you plan to work with the request, it is probably
not a bad idea to make "REQUEST" an argument of this script
(however, you can access it also with e.g. "container.REQUEST",
when you do not pass it directly).

Then, you speak about a method that should be called with
the form data. Let's say the method has name "m" and is
accessible via the calling context. Then you can use:

	   context.m(REQUEST)

When that does not solve your question, you need to be a bit
more specific...


Dieter