app/soc/views/models/student_project.py
changeset 2730 d1cfed8da027
parent 2717 fdde098394a7
child 2743 b9a146acb9bb
equal deleted inserted replaced
2729:f7d4e2c3b697 2730:d1cfed8da027
   487     # get the GradingProjectSurvey list
   487     # get the GradingProjectSurvey list
   488     gps_params = grading_survey_view.getParams().copy()
   488     gps_params = grading_survey_view.getParams().copy()
   489     gps_params['list_key_order'] = None
   489     gps_params['list_key_order'] = None
   490     gps_params['list_heading'] = gps_params['manage_student_project_heading']
   490     gps_params['list_heading'] = gps_params['manage_student_project_heading']
   491     gps_params['list_row'] = gps_params['manage_student_project_row']
   491     gps_params['list_row'] = gps_params['manage_student_project_row']
   492     gps_params['list_info'] = (
       
   493         list_info.getProjectSurveyInfoForProject(entity, gps_params), None)
       
   494 
   492 
   495     # list all surveys for this Project's Program
   493     # list all surveys for this Project's Program
   496     fields['scope_path'] = entity.program.key().id_or_name()
   494     fields['scope_path'] = entity.program.key().id_or_name()
   497     gps_params['list_description'] = \
   495     gps_params['list_description'] = \
   498         'List of all Mentor Evaluations for this Project'
   496         'List of all Mentor Evaluations for this Project'
   499     gps_params['list_action'] = None
   497     gps_params['list_action'] = None
   500 
   498 
   501     gps_list = lists.getListContent(
   499     gps_list = lists.getListContent(
   502         request, gps_params, fields, idx=0)
   500         request, gps_params, fields, idx=0)
       
   501     list_info.setProjectSurveyInfoForProject(gps_list, entity, gps_params)
   503 
   502 
   504     # get the ProjectSurvey list
   503     # get the ProjectSurvey list
   505     ps_params = project_survey_view.getParams().copy()
   504     ps_params = project_survey_view.getParams().copy()
   506     ps_params['list_key_order'] = None
   505     ps_params['list_key_order'] = None
   507     ps_params['list_heading'] = ps_params['manage_student_project_heading']
   506     ps_params['list_heading'] = ps_params['manage_student_project_heading']
   508     ps_params['list_row'] = ps_params['manage_student_project_row']
   507     ps_params['list_row'] = ps_params['manage_student_project_row']
   509     ps_params['list_info'] = (
       
   510         list_info.getProjectSurveyInfoForProject(entity, ps_params), None)
       
   511 
   508 
   512     ps_params['list_description'] = \
   509     ps_params['list_description'] = \
   513         'List of all Student Evaluations for this Project'
   510         'List of all Student Evaluations for this Project'
   514     ps_params['list_action'] = None
   511     ps_params['list_action'] = None
   515 
   512 
   516     # list all surveys for this Project's Program
   513     # list all surveys for this Project's Program
   517     fields['scope_path'] = entity.program.key().id_or_name()
   514     fields['scope_path'] = entity.program.key().id_or_name()
   518     ps_list = lists.getListContent(
   515     ps_list = lists.getListContent(
   519         request, ps_params, fields, idx=1)
   516         request, ps_params, fields, idx=1)
       
   517     list_info.setProjectSurveyInfoForProject(ps_list, entity, ps_params)
   520 
   518 
   521     # store both lists in the content
   519     # store both lists in the content
   522     content = [gps_list, ps_list]
   520     content = [gps_list, ps_list]
   523 
   521 
   524     for list in content:
   522     for list in content: