[mod_python] Simple Issue, Baffling

David Worley dworley at communityconnect.com
Thu Jan 26 16:27:10 EST 2006


Yeah, typo. Thanks for pointing that out.

The preprocessor is going to get a request for a .css file, find a .sss
file, process it, and return it as CSS.

It's correct in the actual program.

Believe me, I've combed over everything small like that. I wouldn't have
written without doing so. It seems like I've missed something in my
understanding of the req object, or the content_type property, or in the
way that AddHandler works.

Any ideas?

===============================
David Worley
Senior Front End Developer
dworley at communityconnect.com
=============================== 

-----Original Message-----
From: Waitman Gobble [mailto:waitman at waitman.net] 
Sent: Thursday, January 26, 2006 4:23 PM
To: Jim Gallacher
Cc: David Worley; mod_python at modpython.org
Subject: Re: [mod_python] Simple Issue, Baffling

Sorry to jump in the middle of the conversation, but is

AddHandler python-program .sss

supposed to be

AddHandler python-program .css

???

Take care,

Waitman





Jim Gallacher wrote:
> David Worley wrote:
>> I'm writing a CSS preprocessor. It's meant to grab a request for a
.css
>>
>> So with the following httpd.conf entry:
>>
>> <Directory /some/file/system/directory>
>>     AddHandler python-program .sss
>>     PythonHandler switch
>>     PythonDebug On
>> </Directory>




More information about the Mod_python mailing list