Exemple #1
0
 def configure_assessment_view_1_4(self, unit, submission_contents):
     readonly_student_assessment = \
         assessments.create_readonly_assessment_params(
             self.get_course().get_assessment_content(unit),
             student_work.StudentWorkUtils.get_answer_list(
                 submission_contents))
     self.template_value[
         'readonly_student_assessment'] = readonly_student_assessment
Exemple #2
0
 def configure_readonly_review_1_4(self, unit, review_contents):
     readonly_review_form = assessments.create_readonly_assessment_params(
         self.get_course().get_review_content(unit),
         student_work.StudentWorkUtils.get_answer_list(review_contents))
     self.template_value['readonly_review_form'] = readonly_review_form
def _get_readonly_review_1_4(handler, unit, review_content):
    return create_readonly_assessment_params(
        courses.Course(handler).get_review_content(unit),
        student_work.StudentWorkUtils.get_answer_list(review_content))