[mod_python] Re: Specifying GET/POST method for FieldStorage

Frédéric Jolliton mod_python at frederic.jolliton.com
Mon Mar 13 21:42:06 EST 2006


[Patching FieldStorage to process only GET or POST fields.]

"Graham Dumpleton" <grahamd-+z240F6uMyr0CCvOHzKKcA at public.gmane.org> writes:
> You do realise you could do this by creating your own class derived
> from FieldStorage? Your derived class would just need to put an
> appropriate wrapper (or not) around the "req" object before passing
> it to the FieldStorage base class constructor.
>
> class _Req1: [wrapper for req overriding 'args']
> class _Req2: [wrapper for req overriding 'method']
[..]

Hmm, why not. I don't thought about that.

Thanks for the suggestion !

-- 
Frédéric Jolliton



More information about the Mod_python mailing list