# HG changeset patch # User Steve Losh # Date 1234676858 18000 # Node ID c413184a564e929dad4eaa89fda5eca046399d44 # Parent 40477baa92d800b6a305884edae3454f97d04caf De-borking the Everything feed, part 1. diff -r 40477baa92d8 -r c413184a564e rss/feeds.py --- a/rss/feeds.py Sun Feb 15 00:38:22 2009 -0500 +++ b/rss/feeds.py Sun Feb 15 00:47:38 2009 -0500 @@ -115,13 +115,13 @@ def items(self): items = [] - items += [{'type': 'blog', 'item': entry, 'date': entry.pub_date, 'title': title} + items += [{'type': 'blog', 'item': entry, 'date': entry.pub_date, 'title': entry.title} for entry in Entry.objects.filter(published=True).order_by('-pub_date')[:10]] - items += [{'type': 'photoblog', 'item': entry, 'date': entry.pub_date, 'title': title} + items += [{'type': 'photoblog', 'item': entry, 'date': entry.pub_date, 'title': entry.title} for entry in PhotoBlogEntry.objects.filter(published=True).order_by('-pub_date')[:10]] - items += [{'type': 'project', 'item': project, 'date': project.posted, 'title': name} + items += [{'type': 'project', 'item': project, 'date': project.posted, 'title': project.name} for project in Project.objects.order_by('-posted')[:10]] items.sort(key=operator.itemgetter('date')) @@ -133,7 +133,7 @@ def item_link(self, item): title = 'Steve Losh / ' + item['title'] - new_link = items['item'].get_absolute_url() + new_link = item['item'].get_absolute_url() return '%s/?FeederAction=clicked&feed=%s&seed=%s&seed_title=%s' % \ (feeder,