Changeset 14161 for main/waeup.aaue/trunk
- Timestamp:
- 5 Sep 2016, 08:42:20 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14145 r14161 131 131 @property 132 132 def remark(self): 133 certificate = getattr(self.__parent__,'certificate',None) 134 end_level = getattr(certificate, 'end_level', None) 135 # final student remark 136 if end_level and self.student.current_level >= end_level: 137 failed_courses = self.passed_params[4] 138 if '_m' in failed_courses: 139 return 'FRNS' 140 if self.cumulative_params[0] < 1.5: 141 return 'Fail' 142 if self.cumulative_params[0] < 2.4: 143 return '3rd' 144 if self.cumulative_params[0] < 3.5: 145 return '2nd Lower' 146 if self.cumulative_params[0] < 4.5: 147 return '2nd Upper' 148 if self.cumulative_params[0] < 5.1: 149 return '1st' 150 return 'N/A' 151 # returning student remark 133 152 if self.cumulative_params[0] < 1.5: 134 153 return 'Probation' 135 154 if self.cumulative_params[0] < 5.1: 136 155 return 'Proceed' 137 return 'N/A'138 139 # only AAUE140 @property141 def final_remark(self):142 if self.cumulative_params[0] < 1.5:143 return 'Fail'144 if self.cumulative_params[0] < 2.4:145 return '3rd'146 if self.cumulative_params[0] < 3.5:147 return '2nd Lower'148 if self.cumulative_params[0] < 4.5:149 return '2nd Upper'150 if self.cumulative_params[0] < 5.1:151 return '1st'152 156 return 'N/A' 153 157
Note: See TracChangeset for help on using the changeset viewer.