Changeset - 61476fdb5c9f
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 10 years ago 2014-07-14 15:03:54
bkuhn@ebb.org
First attempt to follow Django 1.4 feed classes.

I followed the instructions at
https://docs.djangoproject.com/en/1.4/ref/contrib/syndication/
and attempted to get these feeds to match that one.
1 file changed with 17 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/feeds.py
Show inline comments
...
 
@@ -44,2 +44,7 @@ class PressReleaseFeed(Feed):
 
                                           sites__id__exact=settings.SITE_ID).order_by('-pub_date')[:10]
 
    def item_title(self, item):
 
        return item.title
 

	
 
    def item_description(self, item):
 
        return item.title
 

	
...
 
@@ -78,2 +83,8 @@ class OmnibusFeed(ConservancyFeedBase):
 

	
 
    def item_title(self, item):
 
        return item.title
 

	
 
    def item_description(self, item):
 
        return item.description
 

	
 
    def item_enclosure_mime_type(self): return "audio/mpeg"
...
 
@@ -201,2 +212,8 @@ class BlogFeed(ConservancyFeedBase):
 
        
 
    def item_title(self, item):
 
        return item.title
 

	
 
    def item_description(self, item):
 
        return item.description
 

	
 
    def item_author_name(self, item):
0 comments (0 inline, 0 general)