@@ -51,22 +51,30 @@ def set_cutoff_warnings(self):
5151 cutoff_00_str = cutoff_00 .strftime ("%Y-%m-%d %H:%M %Z" )
5252 cutoff_01_str = cutoff_01 .strftime ("%Y-%m-%d %H:%M %Z" )
5353 reopen_str = reopen .strftime ("%Y-%m-%d %H:%M %Z" )
54- if now .date () >= (cutoff_00 .date () - meeting .idsubmit_cutoff_warning_days ) and now <= cutoff_00 :
55- 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 ) )
57- elif now .date () >= cutoff_00 .date () and now <= cutoff_01 :
58- # We are in the first_cut_off
59- if now < cutoff_00 :
54+ if cutoff_00 == cutoff_01 :
55+ if now .date () >= (cutoff_00 .date () - meeting .idsubmit_cutoff_warning_days ) and now .date () < cutoff_00 .date ():
56+ self .cutoff_warning = ( 'The last submission time for Internet-Drafts before %s is %s.<br/><br/>' % (meeting , cutoff_00_str ))
57+ elif now <= cutoff_00 :
6058 self .cutoff_warning = (
61- '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 , ))
63- else : # No 00 version allowed
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 , ))
68- self .in_first_cut_off = True
69- elif now > cutoff_01 and now < reopen :
59+ 'The last submission time for new Internet-Drafts before the meeting is %s.<br/>'
60+ 'After that, you will not be able to submit drafts until after %s (IETF-meeting local time)' % (cutoff_00_str , reopen_str , ))
61+ else :
62+ if now .date () >= (cutoff_00 .date () - meeting .idsubmit_cutoff_warning_days ) and now .date () < cutoff_00 .date ():
63+ 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 ) +
64+ 'The last submission time for revisions to existing documents before %s is %s.<br/>' % (meeting , cutoff_01_str ) )
65+ elif now .date () >= cutoff_00 .date () and now <= cutoff_01 :
66+ # We are in the first_cut_off
67+ if now < cutoff_00 :
68+ self .cutoff_warning = (
69+ 'The last submission time for new documents (i.e., version -00 Internet-Drafts) before the meeting is %s.<br/>'
70+ 'After that, you will not be able to submit a new document until after %s (IETF-meeting local time)' % (cutoff_00_str , reopen_str , ))
71+ else : # No 00 version allowed
72+ self .cutoff_warning = (
73+ 'The last submission time for new documents (i.e., version -00 Internet-Drafts) was %s.<br/>'
74+ 'You will not be able to submit a new document until after %s (IETF-meeting local time).<br/><br>'
75+ 'You can still submit a version -01 or higher Internet-Draft until %s' % (cutoff_00_str , reopen_str , cutoff_01_str , ))
76+ self .in_first_cut_off = True
77+ if now > cutoff_01 and now < reopen :
7078 self .cutoff_warning = (
7179 'The last submission time for the I-D submission was %s.<br/><br>'
7280 'The I-D submission tool will be reopened after %s (IETF-meeting local time).' % (cutoff_01_str , reopen_str ))
0 commit comments