Strip the HTML tags around the new values in the mail produced by email_iesg_processing_document. Also, provide the previously missing URL at the end of the message. Fixes 2455.
- Legacy-Id: 14655
This commit is contained in:
parent
de6121c6c1
commit
6ea0881a89
|
@ -79,11 +79,15 @@ def email_pulled_from_rfc_queue(request, doc, comment, prev_state, next_state):
|
||||||
|
|
||||||
def email_iesg_processing_document(request, doc, changes):
|
def email_iesg_processing_document(request, doc, changes):
|
||||||
addrs = gather_address_lists('doc_iesg_processing_started',doc=doc)
|
addrs = gather_address_lists('doc_iesg_processing_started',doc=doc)
|
||||||
|
tagless_changes = []
|
||||||
|
for c in changes:
|
||||||
|
tagless_changes.append(strip_tags(c))
|
||||||
send_mail(request, addrs.to, None,
|
send_mail(request, addrs.to, None,
|
||||||
'IESG processing details changed for %s' % doc.name,
|
'IESG processing details changed for %s' % doc.name,
|
||||||
'doc/mail/email_iesg_processing.txt',
|
'doc/mail/email_iesg_processing.txt',
|
||||||
dict(doc=doc,
|
dict(doc=doc,
|
||||||
changes=changes),
|
changes=tagless_changes,
|
||||||
|
url=settings.IDTRACKER_BASE_URL + doc.get_absolute_url()),
|
||||||
cc=addrs.cc)
|
cc=addrs.cc)
|
||||||
|
|
||||||
def html_to_text(html):
|
def html_to_text(html):
|
||||||
|
|
Loading…
Reference in a new issue