Beispiel #1
0
 def __init__(self, submission, assignment_average):
     super(OpenAssignmentRowCorrected, self).__init__(submission)
     self.marks = Link(get_average_label(submission.marks),
                       UrlNames.SUBMISSION_ID.name, submission.pk)
     self.average = get_percentage_label(assignment_average)
     self.assignment_id = submission.assignment.pk
     self.submitted = get_date_label(submission.assignment.due)
Beispiel #2
0
 def __init__(self, room_average, rows):
     self.room_average = get_average_label(room_average)
     self.rows = rows
Beispiel #3
0
 def __init__(self, student, average):
     self.name = get_user_label(student)
     self.student_id = student.pk
     self.average = get_average_label(average)
Beispiel #4
0
 def __init__(self, submission):
     super(PracticeAssignmentRow, self).__init__(submission)
     self.subject = submission.assignment.assignmentQuestionsList.subject.name
     self.marks = Link(get_average_label(submission.marks),
                       UrlNames.SUBMISSION_ID.name, submission.pk)
     self.created = get_date_label(submission.assignment.assigned)
Beispiel #5
0
 def __init__(self, link, subjectteacher, average):
     # TODO: rename name to link
     self.name = link
     self.subjectteacher = get_user_label(subjectteacher)
     self.average = get_average_label(average)
     self.id = subjectteacher.pk