Skip to content

Commit c631930

Browse files
author
Martin Qvist
committed
Dependencies of wgrecord to wgcharter rename
- Legacy-Id: 3432
1 parent 8d3ea2f commit c631930

11 files changed

Lines changed: 25 additions & 12 deletions

File tree

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
'ietf.submit',
146146
'ietf.ietfworkflows',
147147
'ietf.wgchairs',
148-
'ietf.wgrecord',
148+
'ietf.wgcharter',
149149
)
150150

151151
INTERNAL_IPS = (

ietf/templates/base_leftmenu.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
<li><a href="{% url doc_search_by_ad name=user.get_profile.person.full_name_as_key %}">My Documents</a></li>
4141
<li><a href="{% url ietf.iesg.views.agenda_documents %}">Next Telechat</a></li>
4242
<li><a href="{% url ietf.iesg.views.discusses %}">Discusses</a></li>
43-
<li><a href="{% url wg_search_by_ad name=user.get_profile.person.full_name_as_key %}">Working Groups</a></li>
43+
{% if user.get_profile.person.area %}
44+
<li><a href="{% url wg_search_by_area name=user.get_profile.person.area.acronym %}">Working Groups</a></li>
45+
{% endif %}
4446
{% endif %}
4547
{% if user|in_group:"Secretariat" %}
4648
<li class="sect first">Secretariat</li>
@@ -74,7 +76,7 @@
7476
<li><a href="http://www.ietf.org/meeting/upcoming.html">Upcoming</a></li>
7577

7678
<li class="sect">Other Documents</li>
77-
<li><a href="/wgrecord/">WG Records</a></li>
79+
<li><a href="/wgcharter/">WG Charters</a></li>
7880
<li><a href="/ipr/">IPR Disclosures</a></li>
7981
<li><a href="/liaison/">Liaison&nbsp;Statements</a></li>
8082
<li><a href="/iesg/agenda/">IESG Agenda</a></li>
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% load ietf_filters %}WG Charter for {{obj.group.name}} ({{ obj.group.acronym|safe }})

ietf/templates/feeds/wg_record_title.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

ietf/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ietf.ipr.feeds import LatestIprDisclosures
1010
from ietf.proceedings.feeds import LatestWgProceedingsActivity
1111
from ietf.liaisons.feeds import Liaisons
12-
from ietf.wgrecord.feeds import GroupComments
12+
from ietf.wgcharter.feeds import GroupComments
1313

1414
from ietf.idtracker.sitemaps import IDTrackerMap, DraftMap
1515
from ietf.liaisons.sitemaps import LiaisonMap
@@ -61,7 +61,7 @@
6161
(r'^accounts/', include('ietf.ietfauth.urls')),
6262
(r'^doc/', include('ietf.idrfc.urls')),
6363
(r'^wg/', include('ietf.wginfo.urls')),
64-
(r'^wgrecord/', include('ietf.wgrecord.urls')),
64+
(r'^wgcharter/', include('ietf.wgcharter.urls')),
6565
(r'^cookies/', include('ietf.cookies.urls')),
6666
(r'^submit/', include('ietf.submit.urls')),
6767
(r'^streams/', include('ietf.ietfworkflows.urls')),

redesign/doc/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __unicode__(self):
9898
def get_absolute_url(self):
9999
name = self.name
100100
if self.type_id == "charter":
101-
return urlreverse('wg_view_record', kwargs={ 'name': self.group.acronym })
101+
return urlreverse('wg_view', kwargs={ 'name': self.group.acronym })
102102
else:
103103
if self.state == "rfc":
104104
aliases = self.docalias_set.filter(name__startswith="rfc")

redesign/group/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from models import *
44
from doc.models import Document # for charter text
5-
from ietf.wgrecord.utils import get_charter_for_revision, approved_revision
5+
from ietf.wgcharter.utils import get_charter_for_revision, approved_revision
66

77
class Acronym(Group):
88
class LazyIndividualSubmitter(object):

redesign/importing/import-groups.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from ietf.idtracker.models import AreaGroup, IETFWG, Area, AreaGroup, Acronym, AreaWGURL, IRTF, ChairsHistory, Role, AreaDirector
2121
from ietf.liaisons.models import SDOs
2222

23-
from ietf.wgrecord.utils import set_or_create_charter
23+
from ietf.wgcharter.utils import set_or_create_charter
2424

2525
# imports IETFWG, Area, AreaGroup, Acronym, IRTF, AreaWGURL, SDOs
2626

@@ -264,8 +264,12 @@
264264
group.list_archive = l
265265

266266
charter = set_or_create_charter(group)
267-
charter.rev = "01"
268-
charter.charter_state = name(CharterDocStateName, slug="approved", name="Approved", desc="The WG is approved by the IESG.")
267+
if group.state_id == "active" or group.state_id == "conclude":
268+
charter.rev = "01"
269+
charter.charter_state = name(CharterDocStateName, slug="approved", name="Approved", desc="The WG is approved by the IESG.")
270+
else:
271+
charter.rev = "00"
272+
charter.charter_state = name(CharterDocStateName, slug="notrev", name="Not currently under review", desc="The effort was abandoned by the IESG.")
269273
charter.save()
270274

271275
group.comments = o.comments.strip() if o.comments else ""

redesign/person/models.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ def role_email(self, role_name, group):
5151
if e:
5252
return e[0]
5353
return None
54+
def area(self):
55+
# Returns area if AD else None
56+
for e in Email.objects.filter(person=self):
57+
rl = e.role_set.filter(name = "ad")
58+
if rl:
59+
return rl[0].group
60+
return None
5461
def email_address(self):
5562
e = self.email_set.filter(active=True)
5663
if e:

0 commit comments

Comments
 (0)