Improve e-mails from replaced-by updates.

Fix an incorrectly-expanded file tag in the subject.
Fixes #1178.
Use a slightly more natural grammatical construct in the message body.
Fixes #1179.
 - Legacy-Id: 6696
This commit is contained in:
Timothy B. Terriberry 2013-11-08 13:09:17 +00:00
parent 0f5b59d431
commit 03896647cc

View file

@ -374,7 +374,7 @@ def replaces(request, name):
old_replaces_names = ", ".join([d.name for d in old_replaces])
if not old_replaces_names:
old_replaces_names = "None"
e.desc = u"Set of documents this document replaces changed to <b>%s</b> from %s"% (new_replaces_names, old_replaces_names)
e.desc = u"This document now replaces <b>%s</b> instead of %s"% (new_replaces_names, old_replaces_names)
e.save()
email_desc = e.desc
if comment:
@ -393,7 +393,7 @@ def replaces(request, name):
email_string = ", ".join(email_list)
send_mail(request, email_string,
"DraftTracker Mail System <iesg-secretary@ietf.org>",
"%s updated by %s" % (doc.file_tag, login),
"%s updated by %s" % (doc.name, login),
"doc/mail/change_notice.txt",
dict(text=html_to_text(email_desc),
doc=doc,