|
20 | 20 | from ietf.doc.utils_charter import ( historic_milestones_for_charter, |
21 | 21 | approved_revision, default_review_text, default_action_text, |
22 | 22 | generate_ballot_writeup, generate_issue_ballot_mail, next_approved_revision, next_revision ) |
23 | | -from ietf.doc.mails import email_state_changed |
| 23 | +from ietf.doc.mails import email_state_changed, email_charter_internal_review |
24 | 24 | from ietf.group.models import ChangeStateGroupEvent, MilestoneGroupEvent |
25 | 25 | from ietf.group.utils import save_group_in_history, save_milestone_in_history, can_manage_group_type |
26 | 26 | from ietf.ietfauth.utils import has_role, role_required |
@@ -140,6 +140,9 @@ def change_state(request, name, option=None): |
140 | 140 | charter.time = datetime.datetime.now() |
141 | 141 | charter.save() |
142 | 142 |
|
| 143 | + if charter_state.slug == 'intrev': |
| 144 | + email_charter_internal_review(request,charter) |
| 145 | + |
143 | 146 | if message or charter_state.slug == "intrev" or charter_state.slug == "extrev": |
144 | 147 | email_admin_re_charter(request, group, "Charter state changed to %s" % charter_state.name, message,'charter_state_edit_admin_needed') |
145 | 148 |
|
@@ -204,9 +207,9 @@ def state_pk(slug): |
204 | 207 |
|
205 | 208 | info_msg = {} |
206 | 209 | if group.type_id == "wg": |
207 | | - info_msg[state_pk("infrev")] = 'The %s "%s" (%s) has been set to Informal IESG review by %s.' % (group.type.name, group.name, group.acronym, login.plain_name()) |
208 | | - info_msg[state_pk("intrev")] = 'The %s "%s" (%s) has been set to Internal review by %s.\nPlease place it on the next IESG telechat and inform the IAB.' % (group.type.name, group.name, group.acronym, login.plain_name()) |
209 | | - info_msg[state_pk("extrev")] = 'The %s "%s" (%s) has been set to External review by %s.\nPlease send out the external review announcement to the appropriate lists.\n\nSend the announcement to other SDOs: Yes\nAdditional recipients of the announcement: ' % (group.type.name, group.name, group.acronym, login.plain_name()) |
| 210 | + info_msg[state_pk("infrev")] = 'The proposed charter for %s "%s" (%s) has been set to Informal IESG review by %s.' % (group.type.name, group.name, group.acronym, login.plain_name()) |
| 211 | + info_msg[state_pk("intrev")] = 'The proposed charter for %s "%s" (%s) has been set to Internal review by %s.\nPlease place it on the next IESG telechat if it has not already been placed.' % (group.type.name, group.name, group.acronym, login.plain_name()) |
| 212 | + info_msg[state_pk("extrev")] = 'The proposed charter for %s "%s" (%s) has been set to External review by %s.\nPlease send out the external review announcement to the appropriate lists.\n\nSend the announcement to other SDOs: Yes\nAdditional recipients of the announcement: ' % (group.type.name, group.name, group.acronym, login.plain_name()) |
210 | 213 |
|
211 | 214 | states_for_ballot_wo_extern = State.objects.none() |
212 | 215 | if group.type_id == "wg": |
|
0 commit comments