[mod_python] Conditional handlers?

Michael C. Neel neel at mediapulse.com
Mon Feb 2 14:43:16 EST 2004

You can return apache.DECLINED, which tells apache your handler declines
processing this request and to go onto the next.

In the case of an AuthenHandler, I would just simply check the request
type and if a POST check the user, otherwise return an apache.OK

These are for straight handlers, I do not know if these work in the
publisher handler - I've never used it.


> -----Original Message-----
> From: Jesse Lawrence [mailto:lawrence_jesse at yahoo.ca] 
> Sent: Monday, February 02, 2004 2:28 PM
> To: mod_python at modpython.org
> Subject: [mod_python] Conditional handlers?
> Hello everyone,
> Is there a way of doing conditional handlers, for
> instance, using the PythonAuthenHandler only if the
> request uses the HTTP POST method?
> Thanks,
> Jesse Lawrence
> ______________________________________________________________
> ________ 
> Post your free ad now! http://personals.yahoo.ca
> _______________________________________________
> 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