Skip to content

Find a way to generate thread data for rss #1

@chaws

Description

@chaws

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions