Replaced non-WG mailing list page with redirect to ietf.org

- Legacy-Id: 1871
This commit is contained in:
Pasi Eronen 2009-11-23 19:39:55 +00:00
parent 93126af05b
commit 9e23b479b9
4 changed files with 4 additions and 151 deletions

View file

@ -1,54 +1,2 @@
# Copyright The IETF Trust 2007, All Rights Reserved
from django.db import models
from ietf.idtracker.models import Acronym, Area
class ImportedMailingList(models.Model):
group_acronym = models.ForeignKey(Acronym, null=True)
acronym = models.CharField(max_length=255, db_column='list_acronym')
name = models.CharField(blank=True, max_length=255, db_column='list_name')
domain = models.CharField(blank=True, max_length=25, db_column='list_domain')
def __str__(self):
return self.acronym or self.group_acronym.acronym
def choices(dname):
objects = ImportedMailingList.objects.all().filter(domain__icontains=dname).exclude(acronym__iendswith='announce')
if dname == "ietf.org":
objects = objects.exclude(acronym__istartswith='ietf').exclude(acronym__icontains='iesg')
return objects
#return [(list.acronym, list.acronym) for list in objects]
choices = staticmethod(choices)
class Meta:
db_table = 'imported_mailing_list'
class Admin:
pass
class NonWgMailingList(models.Model):
id = models.CharField(primary_key=True, max_length=35)
s_name = models.CharField("Submitter's Name", blank=True, max_length=255)
s_email = models.EmailField("Submitter's Email Address", blank=True, max_length=255)
list_name = models.CharField("Mailing List Name", unique=True, max_length=255)
list_url = models.CharField("List URL", max_length=255)
admin = models.TextField("Administrator(s)' Email Address(es)", blank=True)
purpose = models.TextField(blank=True)
area = models.ForeignKey(Area, db_column='area_acronym_id', null=True)
subscribe_url = models.CharField("Subscribe URL", blank=True, max_length=255)
subscribe_other = models.TextField("Subscribe Other", blank=True)
# Can be 0, 1, -1, or what looks like a person_or_org_tag, positive or neg.
# The values less than 1 don't get displayed on the list of lists.
status = models.IntegerField()
ds_name = models.CharField(blank=True, max_length=255)
ds_email = models.EmailField(blank=True, max_length=255)
msg_to_ad = models.TextField(blank=True)
def __str__(self):
return self.list_name
def choices():
return [(list.id, list.list_name) for list in NonWgMailingList.objects.all().filter(status__gt=0)]
choices = staticmethod(choices)
class Meta:
db_table = 'none_wg_mailing_list'
ordering = ['list_name']
class Admin:
pass
# changes done by convert-096.py:changed maxlength to max_length

View file

@ -1,5 +1,5 @@
200 /list/area/
200 /list/wg/
200 /list/nonwg/
301 /list/nonwg/
301 /list/nonwg/update/
301 /list/request/

View file

@ -2,14 +2,13 @@
from django.conf.urls.defaults import patterns
from ietf.idtracker.models import Area, IETFWG
from ietf.mailinglists.models import NonWgMailingList
urlpatterns = patterns('django.views.generic.list_detail',
(r'^area/$', 'object_list', { 'queryset': Area.objects.filter(status=1).select_related().order_by('acronym.acronym'), 'template_name': 'mailinglists/areas_list.html' }),
(r'^nonwg/$', 'object_list', { 'queryset': NonWgMailingList.objects.filter(status__gt=0) }),
(r'wg/$', 'object_list', { 'queryset': IETFWG.objects.filter(email_archive__startswith='http'), 'template_name': 'mailinglists/wgwebmail_list.html' }),
(r'^wg/$', 'object_list', { 'queryset': IETFWG.objects.filter(email_archive__startswith='http'), 'template_name': 'mailinglists/wgwebmail_list.html' }),
)
urlpatterns += patterns('',
(r'^nonwg/update/$', 'django.views.generic.simple.redirect_to', { 'url': 'http://datatracker.ietf.org/list/nonwg/'}),
(r'^nonwg/$', 'django.views.generic.simple.redirect_to', { 'url': 'http://www.ietf.org/list/nonwg.html'}),
(r'^nonwg/update/$', 'django.views.generic.simple.redirect_to', { 'url': 'http://www.ietf.org/list/nonwg.html'}),
(r'^request/$', 'django.views.generic.simple.redirect_to', { 'url': 'http://www.ietf.org/list/request.html' }),
)

View file

@ -1,94 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% load ietf_filters %}
<html>
<head><title>IETF Non-WG Mailing Lists</title>
</head>
<body>
<center><h2>IETF Non-WG Mailing Lists</h2></center>
<p>This page attempts to list all the active, publicly visible lists that are
considered to be related to the IETF, but are not the main list of any working
group, in alphabetical order by list name.</p>
<p>It includes lists that are for discussion of particular topics, lists
that have belonged to former working groups but are still active, lists that
are specified in the registration rules of some parameter registry as
"for review," and others of less clear classification.</p>
<p>Mail sent to all these lists is considered an IETF "Contribution"
as defined in RFC 5378, Section 1 (see also the <a href="http://www.ietf.org/about/note-well.html">NOTE WELL</a> statement).</p>
<p>Details of adding lists to this page can be found at the bottom of the
page.</p>
<table width="100%" cellpadding="2" cellspacing="2" border="1">
<tr><td valign="top" align="left" width="15%"><b>List Name</b></td><td valign="top" align="left" width="20%"><b>List Administrator(s)</b></td>
<td valign="top" align="left" width="35%"><b>Purpose</b></td><td valign="top" align="left" width="5%"><b>Area</b></td><td valign="top" align="left" width="25%"><b>To Subscribe</b></td></tr>
{% for list in object_list %}
<tr>
<td><a href="{{ list.list_url|add_scheme }}">{% firstof list.list_name list.list_url %}</a></td>
<td>{{ list.admin|make_one_per_line|escape }}</td>
<td>{{ list.purpose|truncatewords:"20"|escape }}</td>
<td>{{ list.area|escape }}</td>
<td>{% if list.subscribe_url %}
{# There are lots of non-urls in the database #}
{{ list.subscribe_url|link_if_url|safe }}</a>
{% else %}
&nbsp;
{% endif %}
{% if list.subscribe_other %}
<br>
{{ list.subscribe_other|escape }}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
<p>To add a list, or to update or delete an existing entry, please
send an email to an appropriate Area Director for approval, and ask
him/her to forward the approved request to ietf-action@ietf.org. When
adding a list, please provide the following information:</p>
<ul>
<li>The name and email address of the submitter
<li>The name of the list
<li>The URL or email address of the list
<li>The name(s) and email address(es) of the list administrator(s)
<li>The purpose of the list
<li>The IETF Area to which the list belongs</li>
<li>The URL or other instructions for subscribing to the list</li></ul>
<p>The following types of lists SHOULD be added:</p>
<ul>
<li>Directorates (see also the <a
href="http://www.ietf.org/iesg/directorate.html">list of
directorates</a>)
<li>Review lists specified in IANA procedures
<li>Lists of former WGs that wish to remain active
<li>Lists that are created with the intent to form a working group (with AD
approval)
<li>Lists that are created for a subtask of a working group</li></ul>
<p>The following types of lists SHOULD NOT be added:</p>
<ul>
<li>Existing WGs (listed in the <a
href="/wg/">list of working groups</a>)
<li>IRTF Research Groups (listed at <a
href="http://www.irtf.org/">http://www.irtf.org/</a>)
<li>Lists of former WGs where the list is expected to go passive after WG
shutdown (these can also be found at <a href="http://www.ietf.org/wg/concluded/index.html">http://www.ietf.org/wg/concluded/index.html</a>)
<li>Closed lists where normal IETF participants should have no reason to want
to contact them
<li>Completely passive lists</li></ul>
<p>These guidelines are intended to make the list useful and easy to
maintain.</p>
<p>This list is maintained by the IETF Secretariat. The guidelines are set by
the IESG.</p>
</body>
</html>