Skip to content

Commit 2b78e15

Browse files
committed
Merged in personal/rjs/v4.02_via_rfc containing [4356] which replaces code using the old via-rfc tag with code looking at the document stream (and more), and [4364] which adds document page counts on the future telechats page.
- Legacy-Id: 4482 Note: SVN reference [4356] has been migrated to Git commit 4eabc03 Note: SVN reference [4364] has been migrated to Git commit b3c6652
2 parents 786c56a + b3c6652 commit 2b78e15

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
@@ -407,7 +407,7 @@ def telechat_date(self):
407407
#via_rfc_editor = models.IntegerField(null=True, blank=True)
408408
@property
409409
def via_rfc_editor(self):
410-
return bool(self.tags.filter(slug='via-rfc'))
410+
return self.stream_id in ('ise','irtf')
411411

412412
#state_change_notice_to = models.CharField(blank=True, max_length=255)
413413
@property

ietf/idrfc/idrfc_wrapper.py

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

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

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

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

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

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

177177
def search_archive(self):
178178

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

182182
if self._draft.group_id == Acronym.INDIVIDUAL_SUBMITTER or (settings.USE_DB_REDESIGN_PROXY_CLASSES and self._draft.group.type_id == "area"):
@@ -207,7 +207,7 @@ def stream_id(self):
207207
elif self.draft_name.startswith("draft-irtf-"):
208208
return 3
209209
elif self._idinternal:
210-
if self._idinternal.via_rfc_editor > 0:
210+
if self._idinternal.stream == "ISE":
211211
return 4
212212
else:
213213
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)