Skip to content

Commit

Permalink
Replaced the concept of a tag (via-rfc) identifying ise or irtf docum…
Browse files Browse the repository at this point in the history
…ent (previously the idinternal.via_rfc_editor boolean) with looking at the document's stream.

Removed the stream editing form - that functionality is on the edit info form.
Put the old-ADs back into the list of choices when editing a document's info.

This (re) fixes bug #749
 - Legacy-Id: 4356
  • Loading branch information
rjsparks committed May 3, 2012
1 parent 8972ef7 commit 4eabc03
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 1,181 deletions.
2 changes: 1 addition & 1 deletion ietf/doc/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def telechat_date(self):
#via_rfc_editor = models.IntegerField(null=True, blank=True)
@property
def via_rfc_editor(self):
return bool(self.tags.filter(slug='via-rfc'))
return self.stream_id in ('ise','irtf')

#state_change_notice_to = models.CharField(blank=True, max_length=255)
@property
Expand Down
16 changes: 8 additions & 8 deletions ietf/idrfc/idrfc_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,19 @@ def in_ietf_process(self):
return self.ietf_process != None

def submission(self):
if self._idinternal and self._idinternal.via_rfc_editor:
return "Via IRTF or RFC Editor"

if self._draft.stream_id != u'ietf':
return self._draft.stream

if self._draft.group_id == Acronym.INDIVIDUAL_SUBMITTER:
return "Individual"

if settings.USE_DB_REDESIGN_PROXY_CLASSES:
if self._draft.group and self._draft.group.type_id == "area":
return u"Individual in %s area" % self._draft.group.acronym
if self._draft.group and self._draft.group.type_id == "area":
return u"Individual in %s area" % self._draft.group.acronym

a = self.group_acronym()
if a:
if settings.USE_DB_REDESIGN_PROXY_CLASSES and self._draft.stream_id == "ietf" and self._draft.get_state_slug("draft-stream-ietf") == "c-adopt":
if self._draft.stream_id == "ietf" and self._draft.get_state_slug("draft-stream-ietf") == "c-adopt":
return "candidate for <a href='/wg/%s/'>%s WG</a>" % (a, a)

return "<a href='/wg/%s/'>%s WG</a>" % (a, a)
Expand All @@ -175,7 +175,7 @@ def submission(self):

def search_archive(self):

if self._idinternal and self._idinternal.via_rfc_editor:
if self._idinternal and self._idinternal.stream in ("IRTF","ISE"):
return "www.ietf.org/mail-archive/web/"

if self._draft.group_id == Acronym.INDIVIDUAL_SUBMITTER or (settings.USE_DB_REDESIGN_PROXY_CLASSES and self._draft.group.type_id == "area"):
Expand Down Expand Up @@ -206,7 +206,7 @@ def stream_id(self):
elif self.draft_name.startswith("draft-irtf-"):
return 3
elif self._idinternal:
if self._idinternal.via_rfc_editor > 0:
if self._idinternal.stream == "ISE":
return 4
else:
return 1
Expand Down
2 changes: 1 addition & 1 deletion ietf/idrfc/mails.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def generate_approval_mail_rfc_editor(request, doc):
DO_NOT_PUBLISH_IESG_STATES = ("nopubadw", "nopubanw")

def generate_approval_mailREDESIGN(request, doc):
if doc.get_state_slug("draft-iesg") in DO_NOT_PUBLISH_IESG_STATES or doc.tags.filter(slug='via-rfc'):
if doc.get_state_slug("draft-iesg") in DO_NOT_PUBLISH_IESG_STATES or doc.stream_id in ('ise','irtf'):
mail = generate_approval_mail_rfc_editor(request, doc)
else:
mail = generate_approval_mail_approved(request, doc)
Expand Down

0 comments on commit 4eabc03

Please sign in to comment.