My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 1: tighter compatibility with feedparser
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by chad...@gmail.com, Sep 28, 2009
hi,
i've started looking at rss formatters and yours stood out amongst the
crowd.  i like that feedformatter is designed to be compatible with
feedparser, but i think the compatibility could be made a bit tighter.

for example, a user should be able to instantiate a Feed class directly
from a parsed feedparser structure. ideally, it might look like this:

feed = feedformatter.Feed( **feedparser.parse(ERROR_FEED) )

it looks like to do this, you would need to implement several keywords on
Feed.__init__:

bozo, encoding, entries (alias for items), feed, namespaces, and version

unfortunately, i have very limited experience with feedparser, so i don't
know exactly what to do with this info on the feedformatter side or i would
do it myself.  however, it does seem that the version keyword would allow
the addition of 'format_file' and 'format_string' functions which would use
the passed version to redirect to the appropriate formatting functions.

lastly, since this module is intended to be used with feedparser, your
example code should show how to do this.

thanks for the module.

-chad





Powered by Google Project Hosting