Skip to content

Commit 4eabc03

Browse files
committed
Replaced the concept of a tag (via-rfc) identifying ise or irtf document (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 ietf-tools#749 - Legacy-Id: 4356
1 parent 8972ef7 commit 4eabc03

14 files changed

Lines changed: 41 additions & 1181 deletions

File tree

ietf/doc/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def telechat_date(self):
433433
#via_rfc_editor = models.IntegerField(null=True, blank=True)
434434
@property
435435
def via_rfc_editor(self):
436-
return bool(self.tags.filter(slug='via-rfc'))
436+
return self.stream_id in ('ise','irtf')
437437

438438
#state_change_notice_to = models.CharField(blank=True, max_length=255)
439439
@property

ietf/idrfc/idrfc_wrapper.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,19 @@ def in_ietf_process(self):
153153
return self.ietf_process != None
154154

155155
def submission(self):
156-
if self._idinternal and self._idinternal.via_rfc_editor:
157-
return "Via IRTF or RFC Editor"
156+
157+
if self._draft.stream_id != u'ietf':
158+
return self._draft.stream
158159

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

162-
if settings.USE_DB_REDESIGN_PROXY_CLASSES:
163-
if self._draft.group and self._draft.group.type_id == "area":
164-
return u"Individual in %s area" % self._draft.group.acronym
163+
if self._draft.group and self._draft.group.type_id == "area":
164+
return u"Individual in %s area" % self._draft.group.acronym
165165

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

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

176176
def search_archive(self):
177177

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

181181
if self._draft.group_id == Acronym.INDIVIDUAL_SUBMITTER or (settings.USE_DB_REDESIGN_PROXY_CLASSES and self._draft.group.type_id == "area"):
@@ -206,7 +206,7 @@ def stream_id(self):
206206
elif self.draft_name.startswith("draft-irtf-"):
207207
return 3
208208
elif self._idinternal:
209-
if self._idinternal.via_rfc_editor > 0:
209+
if self._idinternal.stream == "ISE":
210210
return 4
211211
else:
212212
return 1

ietf/idrfc/mails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def generate_approval_mail_rfc_editor(request, doc):
142142
DO_NOT_PUBLISH_IESG_STATES = ("nopubadw", "nopubanw")
143143

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

0 commit comments

Comments
 (0)