Re: Trackback plugin broke?
Steven Armstrong <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On 03/28/05 04:02, Ted Leung wrote:
> Hi Eric,
>
> I think I found the problem. Could you put the out.write back into
> pyblosxom.py and try this version of trackback.py? The problem is that
> trackback wasn't writing to the new response object. Let me know if
> this solves your problems.
>
> Ted
>
Hi Ted
You should also set the headers on the Response object instead of
printing them to stdout.
e.g:
response = request.getResponse()
response.addHeader("Content-type", "text/xml")
instead of:
print "Content-type: text/xml"
print
Also, the following is not needed anymore:
import sys
sys.stdout.flush()
cheers
Steven
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click