datatracker/ietf/iesg/feeds.py
Henrik Levkowetz 5872696834 Moving ietf to trunk/ietf
[[Split portion of a mixed commit.]]
 - Legacy-Id: 96.1
2007-05-04 12:37:28 +00:00

22 lines
700 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
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