c413184a564e

De-borking the Everything feed, part 1.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 15 Feb 2009 00:47:38 -0500
parents 40477baa92d8
children 3a51bfa414da
branches/tags (none)
files rss/feeds.py

Changes

--- 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,