[mod_python] calla function from form and via link

Gregory (Grisha) Trubetskoy grisha at modpython.org
Tue Jan 21 13:15:03 EST 2003


On Tue, 21 Jan 2003 sandor.kopanyi at mailbox.hu wrote:

> (http://...module.py/function?id=somethingdynamicallygenerated).
> But in this case I - obviously - miss the req, which is "given" to me
> only
> when calling a function from a FORM.

The req is *always* passed for as long as your function has it as one of
the arguments, regardless of method (form or not). If you define function
as:

def function(req, id):

then req will passed to you by the Publisher.

Grisha




More information about the Mod_python mailing list