Skip to content

Commit 6da7c85

Browse files
committed
Rename "iesg_minutes" feed to "iesg-minutes", to go with the
URL design of using hyphens and not underscores. Add a "last-call" feed. - Legacy-Id: 844
1 parent e2e21e1 commit 6da7c85

6 files changed

Lines changed: 23 additions & 2 deletions

File tree

ietf/idtracker/feeds.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ def item_pubdate(self, item):
3737

3838
def item_author_name(self, item):
3939
return item.get_author()
40+
41+
class InLastCall(Feed):
42+
title = "Documents in Last Call"
43+
feed_type = Atom1Feed
44+
author_name = 'IESG Secretary'
45+
link = "/idtracker/status/last-call/"
46+
47+
def items(self):
48+
ret = list(IDInternal.objects.filter(primary_flag=1).filter(cur_state__state='In Last Call'))
49+
ret.sort(key=lambda item: (item.document().lc_expiration_date or datetime.date.today()))
50+
return ret
51+
52+
def item_pubdate(self, item):
53+
return item.document().lc_sent_date
54+
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{# Copyright The IETF Trust 2007, All Rights Reserved #}
2+
{% load ietf_filters %}
3+
{{ obj.ballot.last_call_text|escape|linebreaks }}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{# Copyright The IETF Trust 2007, All Rights Reserved #}
2+
{{ obj }} ({{ obj.document.lc_sent_date|date:"F j" }}-{{ obj.document.lc_expiration_date|date:"F j, Y" }})

ietf/urls.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
from django.conf.urls.defaults import patterns, include, handler404, handler500
44

55
from ietf.iesg.feeds import IESGMinutes
6-
from ietf.idtracker.feeds import DocumentComments
6+
from ietf.idtracker.feeds import DocumentComments, InLastCall
77
from ietf.ipr.feeds import LatestIprDisclosures
88

99
from django.conf import settings
1010

1111
feeds = {
12-
'iesg_minutes': IESGMinutes,
12+
'iesg-minutes': IESGMinutes,
13+
'last-call': InLastCall,
1314
'comments': DocumentComments,
1415
'ipr': LatestIprDisclosures,
1516
}

0 commit comments

Comments
 (0)