On colab/rss/feeds.py:
class LatestThreadsFeeds(Feed):
title = _(u'Latest Discussions')
link = '/rss/threads/latest/'
def items(self):
return Thread.objects.all()[:20]
def item_link(self, item):
return item.latest_message.url
def item_title(self, item):
title = '[' + item.mailinglist.name + '] '
title += item.latest_message.subject_clean
return title
def item_description(self, item):
return item.latest_message.body
class HottestThreadsFeeds(Feed):
title = _(u'Discussions Most Relevance')
link = '/rss/threads/hottest/'
def items(self):
return Thread.highest_score.all()[:20]
Thread comes from super_archives. figure out a way of doing with plugin
On colab/rss/feeds.py:
class LatestThreadsFeeds(Feed):
title = _(u'Latest Discussions')
link = '/rss/threads/latest/'
def items(self):
return Thread.objects.all()[:20]
def item_link(self, item):
return item.latest_message.url
def item_title(self, item):
title = '[' + item.mailinglist.name + '] '
title += item.latest_message.subject_clean
return title
def item_description(self, item):
return item.latest_message.body
class HottestThreadsFeeds(Feed):
title = _(u'Discussions Most Relevance')
link = '/rss/threads/hottest/'
def items(self):
return Thread.highest_score.all()[:20]
Thread comes from super_archives. figure out a way of doing with plugin