68 student_record = db.ReferenceProperty( |
68 student_record = db.ReferenceProperty( |
69 ProjectSurveyRecord, required=False, |
69 ProjectSurveyRecord, required=False, |
70 collection_name='student_grading_records') |
70 collection_name='student_grading_records') |
71 |
71 |
72 #: Project for this evaluation. |
72 #: Project for this evaluation. |
73 project = db.ReferenceProperty(StudentProject, |
73 project = db.ReferenceProperty( |
74 collection_name='grading_records', |
74 StudentProject, required=True, collection_name='grading_records') |
75 required=True) |
|
76 |
75 |
77 #: Grade decision set for this grading record. |
76 #: Grade decision set for this grading record. |
78 #: pass: Iff the mentor_record states that the student has passed. |
77 #: pass: Iff the mentor_record states that the student has passed. |
79 #: And if a ProjectSurvey has been set in the GradingSurveyGroup |
78 #: And if a ProjectSurvey has been set in the GradingSurveyGroup |
80 #: then the student_record must be set as well. |
79 #: then the student_record must be set as well. |
83 #: states that the student has passed, a ProjectSurvey has been |
82 #: states that the student has passed, a ProjectSurvey has been |
84 #: set in the GradingSurveyGroup and the student_record property is not |
83 #: set in the GradingSurveyGroup and the student_record property is not |
85 #: set the decision will be fail. |
84 #: set the decision will be fail. |
86 #: undecided: If no mentor_record has been set. |
85 #: undecided: If no mentor_record has been set. |
87 grade_decision = db.StringProperty(required=True, default='undecided', |
86 grade_decision = db.StringProperty(required=True, default='undecided', |
88 choices=['pass', 'fail', 'undecided']) |
87 choices=['pass', 'fail', 'undecided']) |
89 |
88 |
90 #: Boolean that states if the grade_decision property has been locked |
89 #: Boolean that states if the grade_decision property has been locked |
91 #: This is to prevent an automatic update from a GradingSurveyGroup to |
90 #: This is to prevent an automatic update from a GradingSurveyGroup to |
92 #: overwrite the decision made by for example a Program Administrator. |
91 #: overwrite the decision made by for example a Program Administrator. |
93 locked = db.BooleanProperty(required=True, default=False, |
92 locked = db.BooleanProperty(required=True, default=False, |