You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added 4 new fields to the meeting class, to hold draft submission cutoff information for the meeting. On request, changed the presentation of the cutoff times to show the last submission time, rather than the beginning of the cutoff time. Changed the cutoff hour format to support full timedelta information, not just a given hour (this was necessary in order to be able to set the requested 23:59:59 submission stop time).
field=models.IntegerField(default=20, help_text=b'The number of days before the meeting start date when the submission of -00 drafts will be closed.'),
19
+
preserve_default=True,
20
+
),
21
+
migrations.AddField(
22
+
model_name='meeting',
23
+
name='idsubmit_cutoff_day_offset_01',
24
+
field=models.IntegerField(default=13, help_text=b'The number of days before the meeting start date when the submission of -01 drafts etc. will be closed.'),
25
+
preserve_default=True,
26
+
),
27
+
migrations.AddField(
28
+
model_name='meeting',
29
+
name='idsubmit_cutoff_time_utc',
30
+
field=timedelta.fields.TimedeltaField(default=86399.0, help_text=b'The time of day (UTC) after which submission will be closed. Use for example 23 hours, 59 minutes, 59 seconds.'),
31
+
preserve_default=True,
32
+
),
33
+
migrations.AddField(
34
+
model_name='meeting',
35
+
name='idsubmit_cutoff_warning_days',
36
+
field=timedelta.fields.TimedeltaField(default=1814400.0, help_text=b'How long before the 00 cutoff to start showing cutoff warnings. Use for example 21 days or 3 weeks.'),
self.cutoff_warning= ( 'The pre-meeting cut-off date for new documents (i.e., version -00 Internet-Drafts) is %s at %02sh UTC.<br/>'% (first_cut_off, settings.CUTOFF_HOUR) +
51
-
'The pre-meeting cut-off date for revisions to existing documents is %s at %02sh UTC.<br/>'% (second_cut_off, settings.CUTOFF_HOUR) )
52
-
elifnow.date() >=first_cut_offandnow.date() <second_cut_off: # We are in the first_cut_off
self.cutoff_warning='The pre-meeting cut-off date for new documents (i.e., version -00 Internet-Drafts) is %s, at %02sh UTC. After that, you will not be able to submit a new document until %s, at %sh UTC'% (first_cut_off, settings.CUTOFF_HOUR, ietf_monday, settings.CUTOFF_HOUR, )
self.cutoff_warning= ( 'The last submission time for new documents (i.e., version -00 Internet-Drafts) before %s is %s.<br/><br/>'% (meeting, cutoff_00_str) +
56
+
'The last submission time for revisions to existing documents before %s is %s.<br/>'% (meeting, cutoff_01_str) )
'The last submission time for new documents (i.e., version -00 Internet-Drafts) before the meeting is %s.<br/>'
62
+
'After that, you will not be able to submit a new document until after %s (IETF-meeting local time)'% (cutoff_00_str, reopen_str, ))
55
63
else: # No 00 version allowed
56
-
self.cutoff_warning='The pre-meeting cut-off date for new documents (i.e., version -00 Internet-Drafts) was %s at %sh UTC. You will not be able to submit a new document until %s, at %sh UTC.<br>You can still submit a version -01 or higher Internet-Draft until %sh UTC, %s'% (first_cut_off, settings.CUTOFF_HOUR, ietf_monday, settings.CUTOFF_HOUR, settings.CUTOFF_HOUR, second_cut_off, )
64
+
self.cutoff_warning= (
65
+
'The last submission time for new documents (i.e., version -00 Internet-Drafts) was %s.<br/>'
66
+
'You will not be able to submit a new document until after %s (IETF-meeting local time).<br/><br>'
67
+
'You can still submit a version -01 or higher Internet-Draft until %s'% (cutoff_00_str, reopen_str, cutoff_01_str, ))
ifnow.date() ==second_cut_offandnow.hour<settings.CUTOFF_HOUR: # We are in the first_cut_off yet
60
-
self.cutoff_warning='The pre-meeting cut-off date for new documents (i.e., version -00 Internet-Drafts) was %s at %02sh UTC. You will not be able to submit a new document until %s, at %02sh UTC.<br>The I-D submission tool will be shut down at %02sh UTC today, and reopened at %02sh UTC on %s'% (first_cut_off, settings.CUTOFF_HOUR, ietf_monday, settings.CUTOFF_HOUR, settings.CUTOFF_HOUR, settings.CUTOFF_HOUR, ietf_monday)
61
-
self.in_first_cut_off=True
62
-
else: # Completely shut down of the tool
63
-
self.cutoff_warning='The cut-off time for the I-D submission was %02dh UTC, %s.<br>The I-D submission tool will be reopened at %02dh local time at the IETF meeting location, %s.'% (settings.CUTOFF_HOUR, second_cut_off, settings.CUTOFF_HOUR, ietf_monday)
64
-
self.shutdown=True
65
-
69
+
elifnow>cutoff_01andnow<reopen:
70
+
self.cutoff_warning= (
71
+
'The last submission time for the I-D submission was %s.<br/><br>'
72
+
'The I-D submission tool will be reopened after %s (IETF-meeting local time).'% (cutoff_01_str, reopen_str))
0 commit comments