Update IESG Announcement scripts to work with latest models and template changes.

- Legacy-Id: 247
This commit is contained in:
Michael Lee 2007-06-06 05:11:06 +00:00
parent 7fec55b633
commit ac82271bcb
5 changed files with 17 additions and 6 deletions

View file

@ -25,7 +25,7 @@ urlpatterns = patterns('django.views.generic.date_based',
urlpatterns += patterns('django.views.generic.list_detail', urlpatterns += patterns('django.views.generic.list_detail',
(r'^telechat/detail/(?P<object_id>\d+)/$', 'object_detail', { 'queryset': queryset }), (r'^telechat/detail/(?P<object_id>\d+)/$', 'object_detail', { 'queryset': queryset }),
(r'^ann/detail/(?P<object_id>\d+)/$', 'object_detail', { 'queryset': queryset_ann }), (r'^ann/detail/(?P<object_id>\d+)/$', 'object_detail', { 'queryset': queryset_ann, 'template_name':"iesg/ballotinfo_detail.html" }),
) )
urlpatterns += patterns('', urlpatterns += patterns('',

View file

@ -16,7 +16,7 @@ def wgdocs(request,cat):
is_recent = 0 is_recent = 0
if cat == 'recent': if cat == 'recent':
is_recent = 1 is_recent = 1
queryset_list = InternetDraft.objects.filter(b_approve_date__gte = date_threshold, intended_status__in=[1,2,6,7],idinternal__via_rfc_editor=0).order_by("-b_approve_date") queryset_list = list(InternetDraft.objects.filter(b_approve_date__gte = date_threshold, intended_status__in=[1,2,6,7],idinternal__via_rfc_editor=0).order_by("-b_approve_date"))
queryset_list_doc = InternetDraft.objects.filter(b_approve_date__gte = date_threshold, intended_status__in=[3,5],idinternal__via_rfc_editor=0).order_by("-b_approve_date") queryset_list_doc = InternetDraft.objects.filter(b_approve_date__gte = date_threshold, intended_status__in=[3,5],idinternal__via_rfc_editor=0).order_by("-b_approve_date")
elif cat == 'previous': elif cat == 'previous':
queryset_list = InternetDraft.objects.filter(b_approve_date__lt = date_threshold, b_approve_date__gte = '1998-10-15', intended_status__in=[1,2,6,7]).order_by("-b_approve_date") queryset_list = InternetDraft.objects.filter(b_approve_date__lt = date_threshold, b_approve_date__gte = '1998-10-15', intended_status__in=[1,2,6,7]).order_by("-b_approve_date")

View file

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block title %}IESG Announcement{% endblock %}
{% block content %}
<pre>
{{ object.approval_text|escape|urlize }}
{{ object.ballot_writeup|escape|urlize }}
</pre>
{% endblock %}

View file

@ -31,7 +31,7 @@ This page contains links to all IESG Protocol, Document, and Working Group Actio
<b>Date Sent: {{ date.grouper }} </b> <b>Date Sent: {{ date.grouper }} </b>
<ul> <ul>
{% for item in date.list %} {% for item in date.list %}
<li>{% if item.idinternal.ballot_id %}<a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{% else %}<a href="http://www.ietf.org/IESG/Announcements/{{ item.filename }}.ann">{% endif %}{{ item.id_document_name }}</a> <li>{% if item.idinternal.ballot_id %}<a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{% else %}<a href="http://www.ietf.org/IESG/Announcements/{{ item.filename }}.ann">{% endif %}{{ item.title }}</a>
{% endfor %} {% endfor %}
</ul> </ul>
{% endfor %} {% endfor %}
@ -42,7 +42,7 @@ This page contains links to all IESG Protocol, Document, and Working Group Actio
<b>Date Sent: {{ date.grouper }} </b> <b>Date Sent: {{ date.grouper }} </b>
<ul> <ul>
{% for item in date.list %} {% for item in date.list %}
<li><a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{{ item.id_document_name }}</a> <li><a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{{ item.title }}</a>
{% endfor %} {% endfor %}
</ul> </ul>
{% endfor %} {% endfor %}

View file

@ -13,7 +13,7 @@ The RFC Editor receives requests to publish non-IETF Working Group documents as
<b>Date Sent: {{ date.grouper }}</b> <b>Date Sent: {{ date.grouper }}</b>
<ul> <ul>
{% for item in date.list %} {% for item in date.list %}
<li><a href="/iesg/ann/detail/{{ item.ballot_id }}/">{{ item.draft.id_document_name }}</a> <li><a href="/iesg/ann/detail/{{ item.ballot_id }}/">{{ item.draft.title }}</a>
{% endfor %} {% endfor %}
</ul> </ul>
{% endfor %} {% endfor %}
@ -26,7 +26,7 @@ The RFC Editor receives requests to publish non-IETF Working Group documents as
<b>Date Sent: {{ date.grouper }}</b> <b>Date Sent: {{ date.grouper }}</b>
<ul> <ul>
{% for item in date.list %} {% for item in date.list %}
<li><a href="/iesg/ann/detail/{{ item.ballot_id }}/">{{ item.draft.id_document_name }}</a> <li><a href="/iesg/ann/detail/{{ item.ballot_id }}/">{{ item.draft.title }}</a>
{% endfor %} {% endfor %}
</ul> </ul>
{% endfor %} {% endfor %}