Skip to content

Commit b4592ba

Browse files
committed
Change the cutoff-settings to match what's desired. Move CUTOFF_HOUR to settings. Change the submission page template to not show the form during the down period.
- Legacy-Id: 3206
1 parent 413bcda commit b4592ba

4 files changed

Lines changed: 18 additions & 9 deletions

File tree

ietf/proceedings/admin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ class WgAgendaAdmin(admin.ModelAdmin):
6565
pass
6666
admin.site.register(WgAgenda, WgAgendaAdmin)
6767

68+
class SessionStatusAdmin(admin.ModelAdmin):
69+
list_display = ['id', 'name' ]
70+
# list_filter = ['meeting', ]
71+
pass
72+
admin.site.register(SessionStatus, SessionStatusAdmin)
73+
6874
class WgMeetingSessionAdmin(admin.ModelAdmin):
6975
list_display = ['session_id', 'meeting', 'group_acronym_id', 'number_attendee', 'status', 'approval_ad', 'scheduled_date', 'last_modified_date', 'special_req', 'ad_comments']
7076
list_filter = ['meeting', ]

ietf/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@
207207
IDSUBMIT_ANNOUNCE_LIST_EMAIL = 'i-d-announce@ietf.org'
208208

209209
# Days from meeting to cut off dates on submit
210-
FIRST_CUTOFF_DAYS = 5
211-
SECOND_CUTOFF_DAYS = 3
210+
FIRST_CUTOFF_DAYS = 20
211+
SECOND_CUTOFF_DAYS = 13
212+
CUTOFF_HOUR = 17
212213

213214
IDSUBMIT_REPOSITORY_PATH = INTERNET_DRAFT_PATH
214215
IDSUBMIT_STAGING_PATH = '/a/www/www6s/staging/'

ietf/submit/forms.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
from ietf.utils.draft import Draft
2424

2525

26-
CUTOFF_HOUR = 17
27-
28-
2926
class UploadForm(forms.Form):
3027

3128
txt = forms.FileField(label=u'.txt format', required=True)
@@ -54,17 +51,20 @@ def __init__(self, *args, **kwargs):
5451
def read_dates(self):
5552
now = datetime.datetime.utcnow()
5653
first_cut_off = Meeting.get_first_cut_off()
54+
print "first_cut_off:", first_cut_off
5755
second_cut_off = Meeting.get_second_cut_off()
56+
print "second_cut_off:", second_cut_off
5857
ietf_monday = Meeting.get_ietf_monday()
58+
print "ietf_monday:", ietf_monday
5959

6060
if now.date() >= first_cut_off and now.date() < second_cut_off: # We are in the first_cut_off
61-
if now.date() == first_cut_off and now.hour < CUTOFF_HOUR:
61+
if now.date() == first_cut_off and now.hour < settings.CUTOFF_HOUR:
6262
self.cutoff_warning = 'The pre-meeting cutoff date for new documents (i.e., version -00 Internet-Drafts) is %s at 5 PM (PT). You will not be able to submit a new document after this time until %s, at midnight' % (first_cut_off, ietf_monday)
6363
else: # No 00 version allowed
6464
self.cutoff_warning = 'The pre-meeting cutoff date for new documents (i.e., version -00 Internet-Drafts) was %s at 5 PM (PT). You will not be able to submit a new document until %s, at midnight.<br>You can still submit a version -01 or higher Internet-Draft until 5 PM (PT), %s' % (first_cut_off, ietf_monday, second_cut_off)
6565
self.in_first_cut_off = True
6666
elif now.date() >= second_cut_off and now.date() < ietf_monday:
67-
if now.date() == second_cut_off and now.hour < CUTOFF_HOUR: # We are in the first_cut_off yet
67+
if now.date() == second_cut_off and now.hour < settings.CUTOFF_HOUR: # We are in the first_cut_off yet
6868
self.cutoff_warning = 'The pre-meeting cutoff date for new documents (i.e., version -00 Internet-Drafts) was %s at 5 PM (PT). You will not be able to submit a new document until %s, at midnight.<br>The I-D submission tool will be shut down at 5 PM (PT) today, and reopened at midnight (PT), %s' % (first_cut_off, ietf_monday, ietf_monday)
6969
self.in_first_cut_off = True
7070
else: # Completely shut down of the tool

ietf/templates/submit/submit_index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
<p>This page is used to submit IETF Internet-Drafts to the Internet-Draft repository. The list of current Internet-Drafts can be accessed at <a href="http://www.ietf.org/ietf/1id-abstracts.txt">http://www.ietf.org/ietf/1id-abstracts.txt</a></p>
1010
<p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.</p>
1111
<p>Internet-Drafts are draft documents, and are valid for a maximum of six months. They may be updated, replaced, or obsoleted by other documents at any time.</p>
12-
<p>If you run into problems when submitting an Internet-Draft using this and the following pages, you may alternatively submit your draft by email to <a href="mailto:internet-drafts@ietf.org">internet-drafts@ietf.org</a>. However, be advised that manual processing always takes additional time.</p>
12+
{% if not form.shutdown %}
13+
<p>If you run into problems when submitting an Internet-Draft using this and the following pages, you may alternatively submit your draft by email to <a href="mailto:internet-drafts@ietf.org">internet-drafts@ietf.org</a>. However, be advised that manual processing always takes additional time.</p>
1314

14-
{{ form }}
15+
{{ form }}
16+
{% endif %}
1517

1618
<p>
1719
The IETF is an organized activity of the <a href="http://www.isoc.org">Internet Society</a>

0 commit comments

Comments
 (0)