Merged [2622] from suresh.krishnan@ericsson.com:

Adding the last call e-mail to the history of the draft.
 - Legacy-Id: 2636
Note: SVN reference [2622] has been migrated to Git commit 1b42e7986c2cf6d838b0de86ef0aa8b8cb053339
This commit is contained in:
Henrik Levkowetz 2010-11-06 09:42:34 +00:00
parent 23cfcbebb1
commit 4faace8f05

View file

@ -45,6 +45,12 @@ def log_state_changed(request, doc, by, email_watch_list=True):
c.public_flag = True
c.version = doc.revision_display()
c.comment_text = change
if doc.idinternal.docstate()=="In Last Call":
c.comment_text += "\n\n<b>The following Last Call Announcement was sent out:</b>\n\n"
c.comment_text += doc.idinternal.ballot.last_call_text
if isinstance(by, IESGLogin):
c.created_by = by
c.result_state = doc.idinternal.cur_state