@@ -42,7 +42,7 @@ def check_app_locked(meeting=None):
4242 This function returns True if the application is locked to non-secretariat users.
4343 '''
4444 if not meeting :
45- meeting = get_meeting ()
45+ meeting = get_meeting (days = 14 )
4646 return bool (meeting .session_request_lock_message )
4747
4848def get_initial_session (sessions , prune_conflicts = False ):
@@ -100,7 +100,7 @@ def get_lock_message(meeting=None):
100100 Returns the message to display to non-secretariat users when the tool is locked.
101101 '''
102102 if not meeting :
103- meeting = get_meeting ()
103+ meeting = get_meeting (days = 14 )
104104 return meeting .session_request_lock_message
105105
106106def get_requester_text (person ,group ):
@@ -117,7 +117,7 @@ def get_requester_text(person,group):
117117 return '%s, on behalf of the %s working group' % (person .ascii , group .acronym )
118118
119119def get_session_form_class ():
120- meeting = get_meeting ()
120+ meeting = get_meeting (days = 14 )
121121 if meeting .number in settings .SECR_VIRTUAL_MEETINGS :
122122 return VirtualSessionForm
123123 else :
@@ -197,7 +197,7 @@ def approve(request, acronym):
197197 '''
198198 This view approves the third session. For use by ADs or Secretariat.
199199 '''
200- meeting = get_meeting ()
200+ meeting = get_meeting (days = 14 )
201201 group = get_object_or_404 (Group , acronym = acronym )
202202
203203 session = add_event_info_to_session_qs (Session .objects .filter (meeting = meeting , group = group )).filter (current_status = 'apprw' ).first ()
@@ -230,7 +230,7 @@ def cancel(request, acronym):
230230 scheduled during the period when the session request tool is
231231 reopened. In this case be sure to clear the timeslot assignment as well.
232232 '''
233- meeting = get_meeting ()
233+ meeting = get_meeting (days = 14 )
234234 group = get_object_or_404 (Group , acronym = acronym )
235235 sessions = Session .objects .filter (meeting = meeting ,group = group ).order_by ('id' )
236236 login = request .user .person
@@ -269,7 +269,7 @@ def confirm(request, acronym):
269269 '''
270270 # FIXME: this should be using form.is_valid/form.cleaned_data - invalid input will make it crash
271271 group = get_object_or_404 (Group ,acronym = acronym )
272- meeting = get_meeting ()
272+ meeting = get_meeting (days = 14 )
273273 FormClass = get_session_form_class ()
274274
275275 form = FormClass (group , request .POST , hidden = True )
@@ -404,7 +404,7 @@ def edit(request, acronym, num=None):
404404 '''
405405 This view allows the user to edit details of the session request
406406 '''
407- meeting = get_meeting (num )
407+ meeting = get_meeting (num , days = 14 )
408408 group = get_object_or_404 (Group , acronym = acronym )
409409 sessions = add_event_info_to_session_qs (Session .objects .filter (group = group , meeting = meeting )).filter (Q (current_status__isnull = True ) | ~ Q (current_status__in = ['canceled' , 'notmeet' ])).order_by ('id' )
410410 sessions_count = sessions .count ()
@@ -610,7 +610,7 @@ def main(request):
610610 'message' : message },
611611 )
612612
613- meeting = get_meeting ()
613+ meeting = get_meeting (days = 14 )
614614
615615 scheduled_groups = []
616616 unscheduled_groups = []
@@ -665,7 +665,7 @@ def new(request, acronym):
665665 to create the request.
666666 '''
667667 group = get_object_or_404 (Group , acronym = acronym )
668- meeting = get_meeting ()
668+ meeting = get_meeting (days = 14 )
669669 session_conflicts = session_conflicts_as_string (group , meeting )
670670 is_virtual = meeting .number in settings .SECR_VIRTUAL_MEETINGS ,
671671 FormClass = get_session_form_class ()
@@ -728,7 +728,7 @@ def no_session(request, acronym):
728728 - send notification
729729 - update session_activity log
730730 '''
731- meeting = get_meeting ()
731+ meeting = get_meeting (days = 14 )
732732 group = get_object_or_404 (Group , acronym = acronym )
733733 login = request .user .person
734734
@@ -776,7 +776,7 @@ def tool_status(request):
776776 '''
777777 This view handles locking and unlocking of the tool to the public.
778778 '''
779- meeting = get_meeting ()
779+ meeting = get_meeting (days = 14 )
780780 is_locked = check_app_locked (meeting = meeting )
781781
782782 if request .method == 'POST' :
@@ -817,7 +817,7 @@ def view(request, acronym, num = None):
817817 '''
818818 This view displays the session request info
819819 '''
820- meeting = get_meeting (num )
820+ meeting = get_meeting (num , days = 14 )
821821 group = get_object_or_404 (Group , acronym = acronym )
822822 sessions = add_event_info_to_session_qs (Session .objects .filter (meeting = meeting , group = group )).filter (Q (current_status__isnull = True ) | ~ Q (current_status__in = ('canceled' ,'notmeet' ,'deleted' ))).order_by ('id' )
823823
0 commit comments