Kurt McKee

lessons learned in production

Hey there! This article was written in 2009.

It might not have aged well for any number of reasons, so keep that in mind when reading (or clicking outgoing links!).

Changes to rawdog-rss

Posted 31 October 2009 in programming

I've finally "finished" my work on the rawdog rss plugin (which should realistically be called "syndication.py" or something similar). You can view the results at the rawdog-rss github repository. The plugin was originally authored by Jonathan Riddell, and was later updated by Adam Sampson. While I may leave the git repository online, it should not be considered the new plugin homepage. Now, with that out of the way, the big changes I made:

  1. There's now a unit test framework built up around the plugin.
  2. The plugin outputs well-formed XML (in RSS, OPML, and FOAF formats).
  3. FOAF output is now more better.

I also added a hack: after noticing that the Planet KDE configuration file included HTML references instead of Unicode characters (i.e. "á" instead of just "á"), I decided to make the plugin do what was intended , not what was actually written.

The only other thing worth noting is that you can't run the test suite without modifying the rawdog source code. Comments, questions, and criticisms are welcome. Bug reports should be filed at github.