[mod_python] Problem getting the Publisher handler to return nothing

Charles Collis charles.collis at gmail.com
Thu Jan 31 18:35:50 EST 2008

Hadn't tried it before, but have now - unfortunately still no joy.

If I return 'apache.HTTP_NO_CONTENT' my browser then shows a blank page with
'24' at the top which presumably is the code for 'HTTP_NO_CONTENT'.

If I raise the error:

raise apache.HTTP_NO_CONTENT, apache.OK (whether I put ',apache.OK' there or

I get an error message in browser saying:

'TypeError: exceptions must be classes, instances, or strings
(deprecated), not int'

> Have you tried returning apache.HTTP_NO_CONTENT ?
> According to [0],
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html this should
> cause clients do nothing. As the behaviour of the client cannot be
> controlled except for a status code in the header, this might be an
> option easier than creating internal requests using Ajax.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080131/b3709b90/attachment.html

More information about the Mod_python mailing list