Skip to content

Commit 400218f

Browse files
committed
Reword publication request email from alternate streams from
suggestion by Sandy Ginoza and include consensus info - Legacy-Id: 4894
1 parent 3b9bdbc commit 400218f

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

ietf/idrfc/mails.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ietf.utils.mail import send_mail, send_mail_text
1212
from ietf.idtracker.models import *
1313
from ietf.ipr.search import iprs_from_docs
14-
from ietf.doc.models import WriteupDocEvent, BallotPositionDocEvent, LastCallDocEvent, DocAlias
14+
from ietf.doc.models import *
1515
from ietf.person.models import Person
1616
from ietf.group.models import Group
1717

@@ -289,10 +289,14 @@ def generate_publication_request(request, doc):
289289
if doc.group and doc.group.acronym != "none":
290290
group_description = doc.group.name_with_acronym()
291291

292+
e = doc.latest_event(ConsensusDocEvent, type="changed_consensus")
293+
consensus = e.consensus if e else None
294+
292295
return render_to_string("idrfc/publication_request.txt",
293296
dict(doc=doc,
294297
doc_url=settings.IDTRACKER_BASE_URL + doc.get_absolute_url(),
295298
group_description=group_description,
299+
consensus=consensus,
296300
)
297301
)
298302

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{% load mail_filters %}{% autoescape off %}{% filter wordwrap:73 %}
2-
The document "{{ doc.title }}" <{{ doc.name }}> from the {{ doc.stream }} stream is ready for publication as {{ doc|std_level_prompt }}.{% if group_description %}
2+
The {{ doc.stream }} has approved the following document:
3+
4+
- "{{ doc.title }}" ({{ doc.name }}) as {{ doc|std_level_prompt }}.{% if group_description %}
35

46
This document is the product of the {{ group_description }}.{% endif %}{% endfilter %}
57

68
URL: {{ doc_url }}
79

8-
No IANA allocation in the document requires IETF Consensus or Standards Action.
10+
{% filter wordwrap:73 %}{% if consensus != None %}The document {% if consensus %}represents{% else %}does not necessarily represent{% endif%} the consensus of the {{ doc.stream }}.
11+
12+
{% endif %}No IANA allocation in the document requires IETF Consensus or Standards Action.{% endfilter %}
913

1014

11-
[OPTIONAL: include summary of related discussion of this document in an IETF WG or in the IESG.]
15+
[OPTIONAL: Include summary of related discussion of this document in an IETF WG or in the IESG.]
1216

13-
[OPTIONAL: include statement of the purpose of publishing this document, its intended audience, its merits and significance.]
17+
[OPTIONAL: Include statement of the purpose of publishing this document, its intended audience, its merits and significance.]
1418

15-
[OPTIONAL: include suggested names and contact information for one or more competent and independent potential reviewers for the document (this can speed the review and approval process).]
19+
[OPTIONAL: Include suggested names and contact information for one or more competent and independent potential reviewers for the document (this can speed the review and approval process).]
1620
{% endautoescape %}

0 commit comments

Comments
 (0)