[mod_python] argument matching for forms

Piet van Oostrum piet at cs.uu.nl
Thu Apr 4 10:33:23 EST 2002

>>>>> sandor.kopanyi at mailbox.hu (SK) writes:

SK> Hi,
SK> A mod_python newbie question about argument matching for forms:
SK> I have a form for user registration, with 13 fields (name,
SK> address, etc.) - I pass them to mod_python for processing.

SK> But: if I don't give default values to the arguments, it fails,
SK> saying 13 parameters expected, 3 got...

SK> Which 3? Why those 3? And why works if I give default values?
SK> If I use the req.form.list to extract the values, works fine.
SK> But the other way is much more elegant...

Probably the fields that were filled in in the form. Unfilled fields that
don't have a value in the form are probably not passed. Although I think
they should be passed.
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl

More information about the Mod_python mailing list