[mod_python] Help with error message

Jon-Pierre Gentil jgentil at sebistar.net
Mon Sep 27 13:52:24 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rich Pinder wrote:


> TypeError: sendinfofup() takes exactly 14 non-keyword arguments (3 given)
> 
> 
> HTML
> 
> <form action="https://www.xxxxx.org/ctspython/ctsform/sendinfofup"
> method="post" name="form1">
> 
> 
> CODE in .PY file:
> 
> def sendinfofup(frm_id, frm_zip, frm_Email1, frm_Resident_1996,
> frm_Resident_1997, frm_Resident_1998, frm_Resident_1999, frm\
> _Resident_2000, frm_Resident_2001, frm_Resident_2002, frm_Resident_2003,
> frm_Resident_2004, frm_ResidentOutOfCalif, frm_Text\
> 

Don't you need to put req as the first parameter?

And, make sure that EACH and all of those parameters are being
POSTed.  If you try and load the page without each one defined in the
POST, you'll get that error.  Try and make them optional paramters,
setting them to frm_whatever=None...

- --
_________________________________________________________

  Jon-Pierre Gentil               PGP: 0xA21BC30E
  jabber: jgentil at jabber.org      web: www.sebistar.net
  "If you think education is expensive, try ignorance."
_________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iEYEARECAAYFAkFYU1gACgkQOrVFmaIbww6sEQCfcKl9vRjMiq+BFRPHqwGfwmKx
crgAoIR7HS9QTARPw1yoArryEro2Mdx+
=2/AX
-----END PGP SIGNATURE-----


More information about the Mod_python mailing list