[mod_python] How to pass values

Graham Dumpleton grahamd at dscpl.com.au
Thu Jan 25 16:05:58 EST 2007

On 26/01/2007, at 2:45 AM, export at hope.cz wrote:

> Depending on a value being calculated in input filter,
> I will have to  make a decission in request handler.
> What is a  way to find out  the value of the variable  from input  
> filter in request handler?

I believe this was mentioned before.

In filter, set an attribute on the request object:

   def inputfilter(filter):
     filter.req.myflag = True

In the request handler, you can then access that variable.

   def handler(req):
     if req.myflag:


More information about the Mod_python mailing list