# HG changeset patch # User Steve Losh # Date 1232067919 18000 # Node ID a0c42c6ec9809c7ff7a643ef81686631b8f48b02 # Parent e1000c7e0906e497d74c9afae82992447771d6f9 Got the Seeds working with Mint's Bird Feeder plugin. diff -r e1000c7e0906 -r a0c42c6ec980 rss/feeds.py --- a/rss/feeds.py Thu Jan 15 19:34:16 2009 -0500 +++ b/rss/feeds.py Thu Jan 15 20:05:19 2009 -0500 @@ -6,18 +6,26 @@ class LatestEntries(Feed): title = "Steve Losh / RSS / Blog" - link = "http://stevelosh.com/blog/" + link = "http://stevelosh.com/blog" description = "Latest blog entries on stevelosh.com" + feeder = "http://stevelosh.com/feeder" item_author_name = 'Steve Losh' item_author_email = 'steve@stevelosh.com' - item_author_link = 'http://stevelosh.com/' + item_author_link = 'http://stevelosh.com' def items(self): return Entry.objects.filter(published=True).order_by('-pub_date')[:10] def item_pubdate(self, item): return item.pub_date + + def item_link(self, item): + return '%s/?FeederAction=clicked&feed=%s&seed=%s&seed_title=%s' % \ + (self.feeder, + 'Blog', + self.item_author_link + item.get_absolute_url(), + item.title) class LatestComments(Feed): title = "Steve Losh / RSS / Comments"