Re: rss2renderer

Gábor Farkas <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <1095148864.8773.3.camel@dubb>
On Mon, 2004-09-13 at 14:38 -0700, Brett Kelly wrote:
> Just installed this guy on my blog, and it works like a champ, right
> out of the box :)
> 
> http://inkedmn.com:8000/pyblosxom.cgi/index.rss2
> 
> thanks will!

one minor problem:

you're sending text/xml as content type.
don't do that.
send application/xml.

(or application/xml+whatever, i am not sure about those xml+something
formats...)
text/xml is more&less deprecated.
because of encoding problems.

see:
http://www.xml.com/pub/a/2004/07/21/dive.html

in short:
if you use text/xml,
then the encoding of the xml file will be:
-the encoding given in the charset param of the Content-Type HTTP header
-or us-ascii
it ignores the xml-encoding.

when usin application/xml, then it works ok.

gabor

> 
> On Mon, 13 Sep 2004 14:59:18 -0500 (CDT), will guaraldi
> <[email protected]> wrote:
> > 
> > I took Blake's rss2 plugin and did some overhaul work to it moving
> > variables out of the plugin and into config.py, removing some of the
> > existing stuff that was there that was "old" (which should have been
> > re-written instead, but I didn't know how to do that off the top of my
> > head), and added some documentation to the top.
> > 
> > I'm offering to maintain it going forward.  I added it to the PyBlosxom
> > plugin registry under "syndication".
> > 
> > The plugin is an RSS2 renderer that doesn't require flavour templates.
> > You should be able to add it as a plugin and it should just work.
> > 
> > If you spot problems, bugs, have feedback, or whatever, poke me.  If you
> > could solve the problems and then tell me the solution, that would be
> > _really_ helpful.  RSS2 isn't really my forte and it's likely I won't
> > really understand what you're talking about.
> > 
> > Hope this helps.  Also, I'm hoping someone looks at this and does
> > something similar for ATOM, RSS 0.9.1, and other syndication formats
> > because that would be really cool.



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
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.