[mod_python] Doubt regarding form handling in mod_python

Graham Dumpleton graham.dumpleton at gmail.com
Thu Aug 27 19:01:53 EDT 2009


If this is mod_python form object, then it is a FieldStorage instance.
See the documentation:

  http://www.modpython.org/live/current/doc-html/pyapi-util.html

Graham

2009/8/28 Azhaguselvan <selva4210 at gmail.com>:
> Hi,
>
>      We have mod_python+cheetah setup for our web application. I have a form
> in cheetah template which on submit calls a python method. I want to do form
> validation in that method. The doubt i have is if I use
>
> |"myform=req.form" |
>
> what will my myform be? A dictionary of all form parameters as keys and
> values as values? or something else?
>
> If its going to be dictionary, and assume if i have radio button group named
> as radio. How do i access the different members of that radio button group?
> As myform['radio'][0]? Or am i missing something?
>
> Regards,
> tamizhgeek
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>



More information about the Mod_python mailing list