[mod_python] Gentoo Linux - mod_python - not working

Robert Squire rjsquire at ebi-online.com
Wed Oct 19 08:04:20 EDT 2005


Jason Stubbs wrote:

> Robert Squire wrote:
>
>> Here is the file I'm using:
>> -----------------------------------------------------
>> didactic htdocs # cat mptest.py
>> from mod_python import apache
>>
>> def hadler(req):
>
>       ^^^^^^
>
>>        req.content_type = 'text/plain'
>>        req.sent_http_header()
>>        req.write("Hello World!")
>>        return apache.OK
>>
>> -----------------------------------------------------
>
>
> Don't you just hate typos? ;)
>
> -- 
> Jason Stubbs
>
UGGHHH.  Indeed I do hate typos.
Thank you so much for this.  I also typed sent_http_header instead of 
send_http_header.
I was so wrapped up in apache configuration that I never considered the 
possibility that
I screwed up the test file itself.

This quote just isn't funny anymore:
-----------------------------------------------------
On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into 
the machine wrong figures,
will the right answers come out?'
I am not able rightly to apprehend the kind of confusion of ideas that 
could provoke such a question.
-- Charles Babbage


More information about the Mod_python mailing list