Skip to content

Commit 9ff2b9f

Browse files
committed
Merged in support for RG pages, from branch/iola/rg-support.
- Legacy-Id: 7866
2 parents fbc41e7 + 43e472b commit 9ff2b9f

64 files changed

Lines changed: 832 additions & 589 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

changelog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
ietfdb (5.5.0) ietf; urgency=medium
2+
3+
This is a feature release, which introduces pages and workflow support for
4+
IRTF RGs, similar to what is available for IETF WGs. You'll find the rg pages
5+
under /rg/, for instance https://datatracker.ietf.org/rg/cfrg . Having this
6+
new baseline in place, I'm sure we'll get requests for refinements, but
7+
that's the name of the game :-)
8+
9+
-- Henrik Levkowetz <henrik@levkowetz.com> 03 Jun 2014 23:12:44 -0200
10+
11+
112
ietfdb (5.4.3) ietf; urgency=medium
213

314
* Merged in [7772] from rjsparks@nostrum.com:

ietf/bin/send-milestone-reminders

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ietf.settings")
1111

1212
syslog.openlog(os.path.basename(__file__), syslog.LOG_PID, syslog.LOG_LOCAL0)
1313

14-
from ietf.wginfo.mails import *
14+
from ietf.group.mails import *
1515

1616
today = datetime.date.today()
1717

ietf/community/display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_value(self, document, raw=False):
8888
if raw:
8989
return document.group.acronym
9090
else:
91-
return '<a href="%s">%s</a>' % (urlreverse('wg_docs', kwargs={'acronym':document.group.acronym}), document.group.acronym) if (document.group and document.group.acronym != 'none') else ''
91+
return '<a href="%s">%s</a>' % (urlreverse('group_docs', kwargs=dict(group_type=document.group.type_id, acronym=document.group.acronym)), document.group.acronym) if (document.group and document.group.acronym != 'none') else ''
9292

9393

9494
class ADField(DisplayField):

ietf/doc/models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,12 @@ def canonical_name(self):
270270
a = self.docalias_set.filter(name__startswith="rfc")
271271
if a:
272272
name = a[0].name
273-
elif self.type_id == "charter":
274-
return "charter-ietf-%s" % self.chartered_group.acronym
273+
# elif self.type_id == "charter":
274+
# if self.group.type.slug == "rg":
275+
# top_org = "irtf"
276+
# else:
277+
# top_org = "ietf"
278+
# return "charter-%s-%s" % (top_org, self.chartered_group.acronym)
275279
return name
276280

277281
def canonical_docalias(self):

ietf/doc/views_charter.py

Lines changed: 104 additions & 71 deletions
Large diffs are not rendered by default.

ietf/doc/views_doc.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
from ietf.doc.mails import email_ad
5252
from ietf.doc.views_status_change import RELATION_SLUGS as status_change_relationships
5353
from ietf.group.models import Role
54+
from ietf.group.utils import can_manage_group_type
5455
from ietf.ietfauth.utils import has_role, is_authorized_in_doc_stream, user_is_person, role_required
5556
from ietf.name.models import StreamName, BallotPositionName
5657
from ietf.person.models import Email
@@ -63,10 +64,10 @@ def render_document_top(request, doc, tab, name):
6364
ballot = doc.latest_event(BallotDocEvent, type="created_ballot")
6465
if doc.type_id in ("draft","conflrev", "statchg"):
6566
tabs.append(("IESG Evaluation Record", "ballot", urlreverse("doc_ballot", kwargs=dict(name=name)), ballot, None if ballot else "IESG Evaluation Ballot has not been created yet"))
66-
elif doc.type_id == "charter":
67-
tabs.append(("IESG Review", "ballot", urlreverse("doc_ballot", kwargs=dict(name=name)), ballot, None if ballot else "IEST Review Ballot has not been created yet"))
67+
elif doc.type_id == "charter" and doc.group.type_id == "wg":
68+
tabs.append(("IESG Review", "ballot", urlreverse("doc_ballot", kwargs=dict(name=name)), ballot, None if ballot else "IESG Review Ballot has not been created yet"))
6869

69-
if doc.type_id not in ["conflrev", "statchg"]:
70+
if doc.type_id == "draft" or (doc.type_id == "charter" and doc.group.type_id == "wg"):
7071
tabs.append(("IESG Writeups", "writeup", urlreverse("doc_writeup", kwargs=dict(name=name)), True))
7172

7273
tabs.append(("History", "history", urlreverse("doc_history", kwargs=dict(name=name)), True))
@@ -239,7 +240,7 @@ def document_main(request, name, rev=None):
239240
elif group.type_id in ("rg", "wg"):
240241
submission = "%s %s" % (group.acronym, group.type)
241242
if group.type_id == "wg":
242-
submission = "<a href=\"%s\">%s</a>" % (urlreverse("wg_docs", kwargs=dict(acronym=doc.group.acronym)), submission)
243+
submission = "<a href=\"%s\">%s</a>" % (urlreverse("group_docs", kwargs=dict(group_type=doc.group.type_id, acronym=doc.group.acronym)), submission)
243244
if doc.stream_id and doc.get_state_slug("draft-stream-%s" % doc.stream_id) == "c-adopt":
244245
submission = "candidate for %s" % submission
245246

@@ -410,6 +411,8 @@ def document_main(request, name, rev=None):
410411
if chartering and not snapshot:
411412
milestones = doc.group.groupmilestone_set.filter(state="charter")
412413

414+
can_manage = can_manage_group_type(request.user, doc.group.type_id)
415+
413416
return render_to_response("doc/document_charter.html",
414417
dict(doc=doc,
415418
top=top,
@@ -422,6 +425,7 @@ def document_main(request, name, rev=None):
422425
ballot_summary=ballot_summary,
423426
group=group,
424427
milestones=milestones,
428+
can_manage=can_manage,
425429
),
426430
context_instance=RequestContext(request))
427431

ietf/feed_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from django.views.generic import RedirectView
33

44
from ietf.doc.feeds import DocumentChangesFeed, InLastCallFeed
5-
from ietf.wginfo.feeds import GroupChangesFeed
5+
from ietf.group.feeds import GroupChangesFeed
66
from ietf.iesg.feeds import IESGAgendaFeed
77
from ietf.ipr.feeds import LatestIprDisclosuresFeed
88
from ietf.liaisons.feeds import LiaisonStatementsFeed

0 commit comments

Comments
 (0)