Re: Trackback plugin broke?

Ted Leung <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Steven,

Thanks for the code review ;-).  I updated trackback.py

Ted

On Mar 27, 2005, at 6:23 PM, Steven Armstrong wrote:

> 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
> _______________________________________________
> pyblosxom-users mailing list
> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>
----
Ted Leung                          Blog: <http://www.sauria.com/blog>
PGP Fingerprint: 1003 7870 251F FA71 A59A  CEE3 BEBA 2B87 F5FC 4B42
This message is:  [ ] bloggable   [x] ask first    [ ] private



-------------------------------------------------------
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
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.