Merged in Adams django-based replacement for the old perl-based nomcom announcement pages.

- Legacy-Id: 1407
This commit is contained in:
Henrik Levkowetz 2009-03-21 23:52:49 +00:00
parent a1d9600609
commit eaf6eb631a
7 changed files with 208 additions and 4 deletions
ietf
announcements
idtracker
settings.py
templates/announcements
urls.py

View file

@ -8,6 +8,8 @@ nomcom_dict = {
}
urlpatterns = patterns('',
(r'^nomcom/$', 'django.views.generic.simple.redirect_to', {'url': 'http://www.ietf.org/nomcom/index.html'} ),
(r'^nomcom/(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', nomcom_dict)
# (r'^nomcom/$', 'django.views.generic.simple.redirect_to', {'url': 'http://www.ietf.org/nomcom/index.html'} ),
(r'^$', 'ietf.announcements.views.all'),
(r'^chairs/', 'ietf.announcements.views.chairs'),
(r'^(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', nomcom_dict)
)

View file

@ -1,3 +1,42 @@
# Copyright The IETF Trust 2007, All Rights Reserved
# Create your views here.
from django.http import HttpResponse
from django.template.loader import render_to_string
from django.shortcuts import render_to_response
from ietf.idtracker.models import ChairsHistory
from ietf.idtracker.models import PersonOrOrgInfo
from ietf.idtracker.models import Role
from ietf.announcements.models import Announcement
def all(request):
curr_chair = (ChairsHistory.objects.
get(chair_type=Role.NOMCOM_CHAIR, present_chair='1'))
all_chairs = (ChairsHistory.objects.all().
filter(chair_type='3',start_year__gt = 2003).
order_by('-start_year'))
nomcom_announcements = Announcement.objects.all().filter(nomcom=1)
regimes = []
for chair in all_chairs:
chair_announcements = (nomcom_announcements.filter(nomcom_chair=chair).
order_by('-announced_date','-announced_time'))
regimes = regimes + [{'chair': chair,
'announcements' : chair_announcements }]
return render_to_response("announcements/nomcom.html",
{ 'curr_chair' : curr_chair,
'regimes' : regimes })
def chairs(request):
all_chairs = (ChairsHistory.objects.all().
filter(chair_type='3',start_year__gt = 2003).
order_by('-start_year'))
return render_to_response("announcements/chairs.html",
{ 'chairs' : all_chairs })

View file

@ -951,6 +951,15 @@ class Role(models.Model):
'''
person = models.ForeignKey(PersonOrOrgInfo, db_column='person_or_org_tag', raw_id_admin=True)
role_name = models.CharField(maxlength=25, db_column='chair_name')
# Role values
IETF_CHAIR = 1
IAB_CHAIR = 2
NOMCOM_CHAIR = 3
IAB_EXCUTIVE_DIRECTOR = 4
IRTF_CHAIR = 5
IAD_CHAIR = 6
# This __str__ makes it odd to use as a ForeignKey.
def __str__(self):
return "%s (%s)" % (self.person, self.role())

View file

@ -35,9 +35,9 @@ MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = 'ietf' # Or path to database file if using sqlite3.
DATABASE_USER = 'ietf' # Not used with sqlite3.
#DATABASE_PASSWORD = 'playing' # Not used with sqlite3.
DATABASE_PASSWORD = 'ietf' # Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
DATABASE_HOST = '130.129.52.254' # Set to empty string for localhost. Not used with sqlite3.
# Local time zone for this installation. Choices can be found here:
# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE

View file

@ -0,0 +1,72 @@
{% extends "base.html" %}
{% load ietf_filters %}
{% block title %}IAB/IESG Nominating Committee Chairs{% endblock %}
{% block content %}
<H1><center>IAB/IESG Nominating Committee Chairs</center></H1>
<table>
<tr>
<th>Year</th>
<th>Chair</th>
</tr>
{% for chair in chairs %}
<tr>
<td>{{ chair.start_year }} - {{ chair.end_year }}</td>
<td><a href="mailto:{{ chair.person.email.1 }}">{{ chair.person }}</a></td>
</tr>
{% endfor %}
<tr>
<td>2003 - 2004</td>
<td>Richard Draves</td>
</tr>
<tr>
<td>2002 - 2003</td>
<td>Phil Roberts</td>
</tr>
<tr>
<td>2001 - 2002</td>
<td>Theodore Ts'o</td>
</tr>
<tr>
<td>2000 - 2001</td>
<td>Bernard Aboba</td>
</tr>
<tr>
<td>1999 - 2000</td>
<td>Avri Doria</td>
</tr>
<tr>
<td>1998 - 1999</td>
<td>Donald Eastlake 3rd</td>
</tr>
<tr>
<td>1997 - 1998</td>
<td>Michael St. Johns</td>
</tr>
<tr>
<td>1996 - 1997</td>
<td>Geoff Huston</td>
</tr>
<tr>
<td>1995 - 1996</td>
<td>Guy Almes</td>
</tr>
<tr>
<td>1994 - 1995</td>
<td>John Curran</td>
</tr>
<tr>
<td>1993 - 1994</td>
<td>Fred Baker</td>
</tr>
<tr>
<td>1992 - 1993</td>
<td>Jeff Case</td>
</tr>
</table>
{% endblock %}

View file

@ -0,0 +1,81 @@
{% extends "base.html" %}
{% load ietf_filters %}
{% block title %}IAB/IESG Nominating Committee{% endblock %}
{% block content %}
<H1><center>IAB/IESG Nominating Committee</center></H1>
<h3><center>Current Committee Chair: <a href="mailto:{{ curr_chair.person.email.1 }}">{{ curr_chair.person.email.0 }}</a></center></h3>
{% for regime in regimes %}
<hr>
<h1>Messages from {{ regime.chair.start_year }} - {{ regime.chair.end_year }}</h1>
<h4>Committee Chair: <a href="mailto:{{ regime.chair.person.email.1 }}">{{ regime.chair.person }}</a></h4>
<table>
<tr>
<th width="10%">Date</th>
<th width="60%">Subject</th>
<th width="30%">Sent To</th>
</tr>
{% for ann in regime.announcements %}
<tr>
<td>{{ ann.announced_date|date:"Y-M-d" }}</td>
<td style="max-width:50%"><a href="https://datatracker.ietf.org/ann/nomcom/{{ ann.announcement_id }}">{{ ann.subject }}</a></td>
<td>{{ ann.announced_to }}</td>
<tr>
{% endfor %}
</table>
{% endfor %}
<hr>
<h3>Messages from 2003-2004 NomCom</h3>
Committee Chair: <A HREF="mailto:richdr\@microsoft.com">Rich Draves</A>
<br><br><li><a href="msg08-25-2003.txt">IETF Nominations Committee Chair Announcement</a> August 25, 2003
<LI><a href="msg09.22.txt">NomCom call for volunteers</a> September 22, 2003<LI><A HREF="select-announce_03.txt">Selection of the Nominations Committee</A>
<LI><A HREF="msg10.06.txt">NomCom Volunteer List</a> October 06, 2004
<LI><A HREF="msg1010.txt">NomCom Selection</a> October 10, 2003
<LI><A HREF="msg10.17.txt">Call for Nominees</a> October 17, 2003
<LI><A HREF="msg10.24.txt">NomCom members</a> October 24, 2003<LI><A HREF="msg11.07.txt">NomCom at IETF</a> November 07, 2003
<LI><A HREF="msg11.14.txt">NomCom News</a> November 14, 2003
<LI><A HREF="msg11.26.txt">Reminder - nominations to replace Randy Bush</a> Nove
mber 26, 2003
<LI><A HREF="msg12.01.txt">Randy Bush replacement schedule</a> December 01, 2003
<LI><A HREF="msg01.14.txt">Randy Bush replacement</a> January 14, 2004
<LI><A HREF="msg02.13.txt">NomCom results</a> February 13, 2004
<LI><A HREF="msg09.28.txt">Call for Security AD nominations</a> September 28, 2004
<LI><A HREF="msg11.07.04.txt">Steve Bellovin replacement</a> November 07, 2004
<h3>Messages from 2002-2003 NomCom</h3>
Committee Chair: <A HREF="mailto:PRoberts\@MEGISTO.com">Phil Roberts</A>
<br><br>
<LI><A HREF="msg19765.html">First Call for Volunteers</A> July 30, 2002
<LI><A HREF="select-announce.txt">Selection of the Nominations Committee</A><LI><A HREF="msg0918.txt">Announcement of the Nominations Committee</A> September 18, 2002
<LI><A HREF="msg10.21.txt">Announcement of IESG and IAB Nominations Requests</A>
October 21, 2002
<LI><A HREF="msg11.05.txt">Announcement of IESG and IAB Nominations Requests</A>
November 5, 2002
<LI><A HREF="msg11.12.txt">Announcement of IESG and IAB Nominations Requests</A>
November 12, 2002
<LI><a href="msg02.27.txt">IETF Nomcom Announcement</a> February 27, 2003
, 2003
<LI><a href="msg06.11.txt">Announcement of IESG and IAB Nominations Request</a> June 11, 2003
<LI><a href="msg07.15.txt">Nomcom result announcement</a> July 15, 2003
<h3>Historical Information</h3>
<li><a href="/nomcom/chairs">IAB/IESG Nominating Committee Chairs (by year)</a>
<li><a href="http://www.ietf.org/NomCom.html">IAB/IESG Nominating Committee Members (by year)</a>
<h3>References</h3>
<LI><A HREF="/rfc/rfc2026.txt">The Internet Standards Process (RFC 2026)</A>
<LI><A HREF="/rfc/rfc3777.txt">IAB and IESG Selection, Confirmation, and Recall Process: Operation of the Nominating and Recall Committees (RFC 3777) (Also BCP10)</A>
<LI><A HREF="/rfc/rfc3797.txt">Publicly Verifiable Nominations Committee (NomCom) Random Selection (RFC 3797)</A>
{% endblock %}

View file

@ -54,6 +54,7 @@ urlpatterns = patterns('',
(r'^meeting/', include('ietf.meeting.urls')),
(r'^accounts/', include('ietf.ietfauth.urls')),
(r'^doc/', include('ietf.idrfc.urls')),
(r'^nomcom/', include('ietf.announcements.urls')),
(r'^$', 'ietf.redirects.views.redirect'),