datatracker/ietf/iesg/feeds.py
Bill Fenner f9b9b51536 Add author to iesg telechat minutes feed, to make it valid.
Add document comments feed to top-level urls.
 - Legacy-Id: 101
2007-05-04 21:49:21 +00:00

23 lines
735 B
Python

from django.contrib.syndication.feeds import Feed
from django.utils.feedgenerator import Atom1Feed
from ietf.iesg.models import TelechatMinutes
class IESGMinutes(Feed):
title = "IESG Telechat Minutes"
link = "/iesg/telechat/"
subtitle = "Minutes from IESG Telechats."
feed_type = Atom1Feed
author_name = 'IESG Secretary'
def items(self):
return TelechatMinutes.objects.order_by('-telechat_date')[:10]
def item_link(self, item):
return "/iesg/telechat/detail/%d/" % (item.id)
# The approval date isn't stored, so let's just say they're
# published on the date of the telechat.
def item_pubdate(self, item):
# (slightly better would be 0900 Eastern on this date)
return item.telechat_date