[OGDev] Refactoring CGI::Wiki::Plugin::RSS::ModWiki and OpenGuides::Feed

Nick Burch openguides at gagravarr.org
Tue May 16 15:36:30 BST 2006


On Fri, 12 May 2006, Dominic Hargreaves wrote:
> This is already present and I'm in the process of integrating both into 
> Wiki::Toolkit. See changesets from last night. I'll prod you when 
> they're ready (and I'll probably do another development release then 
> too).

Any chance they could be done by Thursday? :)

> I think you need to give us an idea of how you plan to refactor these 
> first :)

OK, first I should give an overview of how it currently works:

* wiki.cgi notices you want the recent changes
* it spots you want format=rss, and calls guide->display_feed, requesting
    feed_type of rss and feed of recent_changes
* display_feed in OpenGuides.pm largely delegates to OpenGuides::Feed
   It only supports rss (and doesn't pass that to OpenGuides::Feed), and
    only supports recent changes (and doesn't pass that to OpenGuides::Feed)
* OpenGuides::Feed sets up the cgi::wiki instance, and calls
    CGI::Wiki::Plugin::RSS::ModWiki 
* CGI::Wiki::Plugin::RSS::ModWiki fetches the recent changes, and RSS
    formats it


So, my change would be to:
* allow other kinds of feeds to be requested from wiki.cgi
* have everything keep track of what sort of feed it is you want
* have CGI::Wiki::Plugin::RSS::ModWiki be able to fetch different node
    lists, be they recent changes, node versions etc
* have CGI::Wiki::Plugin::RSS::ModWiki format all these lists in much the
    same way as it now does


This will need to fit in with tracking what format of feed (rss, atom etc) 
is requested, and having different outputs possible

Nick



More information about the OpenGuides-Dev mailing list