Skip to content

Commit 9e23b47

Browse files
committed
Replaced non-WG mailing list page with redirect to ietf.org
- Legacy-Id: 1871
1 parent 93126af commit 9e23b47

4 files changed

Lines changed: 4 additions & 151 deletions

File tree

ietf/mailinglists/models.py

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,2 @@
11
# Copyright The IETF Trust 2007, All Rights Reserved
22

3-
from django.db import models
4-
from ietf.idtracker.models import Acronym, Area
5-
6-
class ImportedMailingList(models.Model):
7-
group_acronym = models.ForeignKey(Acronym, null=True)
8-
acronym = models.CharField(max_length=255, db_column='list_acronym')
9-
name = models.CharField(blank=True, max_length=255, db_column='list_name')
10-
domain = models.CharField(blank=True, max_length=25, db_column='list_domain')
11-
def __str__(self):
12-
return self.acronym or self.group_acronym.acronym
13-
def choices(dname):
14-
objects = ImportedMailingList.objects.all().filter(domain__icontains=dname).exclude(acronym__iendswith='announce')
15-
if dname == "ietf.org":
16-
objects = objects.exclude(acronym__istartswith='ietf').exclude(acronym__icontains='iesg')
17-
return objects
18-
#return [(list.acronym, list.acronym) for list in objects]
19-
choices = staticmethod(choices)
20-
class Meta:
21-
db_table = 'imported_mailing_list'
22-
class Admin:
23-
pass
24-
25-
class NonWgMailingList(models.Model):
26-
id = models.CharField(primary_key=True, max_length=35)
27-
s_name = models.CharField("Submitter's Name", blank=True, max_length=255)
28-
s_email = models.EmailField("Submitter's Email Address", blank=True, max_length=255)
29-
list_name = models.CharField("Mailing List Name", unique=True, max_length=255)
30-
list_url = models.CharField("List URL", max_length=255)
31-
admin = models.TextField("Administrator(s)' Email Address(es)", blank=True)
32-
purpose = models.TextField(blank=True)
33-
area = models.ForeignKey(Area, db_column='area_acronym_id', null=True)
34-
subscribe_url = models.CharField("Subscribe URL", blank=True, max_length=255)
35-
subscribe_other = models.TextField("Subscribe Other", blank=True)
36-
# Can be 0, 1, -1, or what looks like a person_or_org_tag, positive or neg.
37-
# The values less than 1 don't get displayed on the list of lists.
38-
status = models.IntegerField()
39-
ds_name = models.CharField(blank=True, max_length=255)
40-
ds_email = models.EmailField(blank=True, max_length=255)
41-
msg_to_ad = models.TextField(blank=True)
42-
def __str__(self):
43-
return self.list_name
44-
def choices():
45-
return [(list.id, list.list_name) for list in NonWgMailingList.objects.all().filter(status__gt=0)]
46-
choices = staticmethod(choices)
47-
class Meta:
48-
db_table = 'none_wg_mailing_list'
49-
ordering = ['list_name']
50-
class Admin:
51-
pass
52-
53-
54-
# changes done by convert-096.py:changed maxlength to max_length

ietf/mailinglists/testurl.list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
200 /list/area/
22
200 /list/wg/
3-
200 /list/nonwg/
3+
301 /list/nonwg/
44
301 /list/nonwg/update/
55
301 /list/request/

ietf/mailinglists/urls.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
from django.conf.urls.defaults import patterns
44
from ietf.idtracker.models import Area, IETFWG
5-
from ietf.mailinglists.models import NonWgMailingList
65

76
urlpatterns = patterns('django.views.generic.list_detail',
87
(r'^area/$', 'object_list', { 'queryset': Area.objects.filter(status=1).select_related().order_by('acronym.acronym'), 'template_name': 'mailinglists/areas_list.html' }),
9-
(r'^nonwg/$', 'object_list', { 'queryset': NonWgMailingList.objects.filter(status__gt=0) }),
10-
(r'wg/$', 'object_list', { 'queryset': IETFWG.objects.filter(email_archive__startswith='http'), 'template_name': 'mailinglists/wgwebmail_list.html' }),
8+
(r'^wg/$', 'object_list', { 'queryset': IETFWG.objects.filter(email_archive__startswith='http'), 'template_name': 'mailinglists/wgwebmail_list.html' }),
119
)
1210
urlpatterns += patterns('',
13-
(r'^nonwg/update/$', 'django.views.generic.simple.redirect_to', { 'url': 'http://datatracker.ietf.org/list/nonwg/'}),
11+
(r'^nonwg/$', 'django.views.generic.simple.redirect_to', { 'url': 'http://www.ietf.org/list/nonwg.html'}),
12+
(r'^nonwg/update/$', 'django.views.generic.simple.redirect_to', { 'url': 'http://www.ietf.org/list/nonwg.html'}),
1413
(r'^request/$', 'django.views.generic.simple.redirect_to', { 'url': 'http://www.ietf.org/list/request.html' }),
1514
)

ietf/templates/mailinglists/nonwgmailinglist_list.html

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)