empty content-type

gabor <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
hi,

i'm using pyblosxom in a quite specialized way..(i'm generating only a <div>
with it, not a full html page).

for that i need him not to generate the content-type header.

so i made a small change, and i think it should also be included in pyblosxom.

if the content_type.flavour file is empty, then don't output the content-type 
header.

i did this:

Pyblosxom/renderers/blosxom.py, line 213:
before:
if self._needs_content_type:
after:
if self._needs_content_type and data['content-type'] !="":

what do you think?

gabor
-- 
That's life for you, said McDunn.  Someone always waiting for someone 
who never comes home.  Always someone loving something more than that 
thing loves them.  And after awhile you want to destroy whatever 
that thing is, so it can't hurt you no more.
                -- R. Bradbury, "The Fog Horn"


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.