PodChannel
Category: Media
—
Other products by this author
Current release
No stable release available yet.
Experimental releases
Upcoming and alpha/beta/candidate releases
- Alpha releases should only be used for testing and development.
- Beta releases and Release Candidates are normally released for production testing, but should not be used on mission-critical sites.
- Always install on a separate test server first, and make sure you have proper backups before installing.
Project Description
- Project resources
A PodChannel is an Archetype item w/ only one field:
the URL of a RSS feed. Upon updateing a PodChannel, it
will query the feed, and initialize itself w/ relevent info.
PodFolders collect PodChannels and more PodFolders.
Updating a PodFolders will recursively update all of it's descendants.
Calling podchannel_raw_list on a Pod{Channel,Folder}
returns a simple text listing of an item's payload, suggested file name,
mime-type, and length, so that clients can easily use a
Pod{Channel,Folder} to maintain a local cache of subscribed channels.
A sample client and crontab script (appropriate for a Red Hatish
distribution) are included.
At a low level, a general python class called XMLSimpleElement
makes XML structure easily available as a python hash, and therefore as
a TALES expression. XML Elements must be "Simple" in that it cannot
handle mixed content (i.e., XML elements must contain either text only or
more elements only). For many simple XML documents (such as RSS feeds),
this is reasonable.
I tackled this to help improve my grok of PodCasting, Plone, and Archetypes
in general. Any suggestions about interpreting RSS feeds (which seem
to be horribly inconsistant), or Archetype design are welcome. It works
well with NPR Feeds, I haven't tested it much on
others.