Re: Help needed with writing a plugin for rss2 (a bit long)
Gordon Weakliem <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
I'm working on a more detailed answer, but it'll take a while, so this is the shorter answer. I think you're making this a little more complicated than necessary. Most of the questions you ask are concerned with writing a custom renderer, which you don't need to do. I've implemented rss2 (and atom) using only templates (http://www.eighty-twenty.net/blog?flav=rss). What you should do is start by copying the templates from renderers/blosxom.py, in the method _getFlavour. Look for the line where the variable rss is assigned the value of a literal dictionary. Each key in the dictionary will be the name of a template file in your root_datadir, which you should give the extension "rss2"; e.g. content_type.rss2, head.rss2, story.rss2, foot.rss2. The corresponding value will be the contents of the file. Try just creating these files; from there you should be able to figure out how to modify the default RSS (0.91) into 2.0. -----Original Message from Rune Morling <[email protected]>----- Hi all, I would like to write a plugin for pyblosxom, both as a learning experience, but also out of a desire to get proper rss2.0 handling in pyblosxom via ?flav=rss2 or index.rss2. I've looked through the wiki and looked around in the code of pybloxom, but I'm not quite sure how to proceed. This will be a learning experience for me - I'm aiming to document the process thoroughly perhaps allowing my effort to be kind of a plugin writing HOWTO. I'll try to explain what I want to do and what my questions are in the following. ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54