datatracker/ietf/iesg/feeds.py
Henrik Levkowetz cd030d3b43 Adding copyright notices to all python files
- Legacy-Id: 716
2007-06-27 21:16:34 +00:00

25 lines
789 B
Python

# Copyright The IETF Trust 2007, All Rights Reserved
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