Changeset 14576 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 23 Feb 2017, 14:22:19 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser_templates/studyleveleditpage.pt
r14534 r14576 19 19 <th i18n:translate="">Credits</th> 20 20 <th i18n:translate="">CO</th> 21 <th i18n:translate="">OS</th> 21 22 </tr> 22 23 </thead> … … 37 38 <td tal:content="value/credits">CREDITS</td> 38 39 <td tal:content="value/carry_over">CO</td> 40 <td tal:content="value/outstanding">OS</td> 39 41 </tr> 40 42 </tbody> -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser_templates/studylevelmanagepage.pt
r14534 r14576 48 48 <th i18n:translate="">CA</th> 49 49 <th i18n:translate="">CO</th> 50 <th i18n:translate="">OS</th> 50 51 <th i18n:translate="">Auto</th> 51 52 </tr> … … 69 70 <td tal:content="value/ca|nothing">CA</td> 70 71 <td tal:content="value/carry_over">CO</td> 72 <td tal:content="value/outstanding">OS</td> 71 73 <td tal:content="value/automatic">AUTO</td> 72 74 </tr> -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser_templates/studylevelpage.pt
r14453 r14576 32 32 <th i18n:translate="" tal:condition="view/show_results" >Grade</th> 33 33 <th i18n:translate="">CO</th> 34 <th i18n:translate="">OS</th> 34 35 <th i18n:translate="">Auto</th> 35 36 </tr> … … 50 51 <td tal:condition="view/show_results" tal:content="value/grade|nothing">GRADE</td> 51 52 <td tal:content="value/carry_over">CO</td> 53 <td tal:content="value/outstanding">OS</td> 52 54 <td tal:content="value/automatic">AUTO</td> 53 55 </tr> … … 55 57 </table> 56 58 59 <p i18n:translate=""> 60 CO: Carry-over course<br /> 61 OS: Outstanding course<br /> 62 Requ.: Required course<br /> 63 Auto: Automatically created course ticket 64 </p> 65 57 66 <div i18n:domain="waeup.kofa" 58 67 tal:condition="python: not len(context.keys())" i18n:translate=""> -
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14537 r14576 48 48 total = 0 49 49 for ticket in self.values(): 50 if ticket.semester == 1 :50 if ticket.semester == 1 and not ticket.outstanding: 51 51 total += ticket.credits 52 52 return total … … 56 56 total = 0 57 57 for ticket in self.values(): 58 if ticket.semester == 2 :58 if ticket.semester == 2 and not ticket.outstanding: 59 59 total += ticket.credits 60 60 return total -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14571 r14576 123 123 self.assertEqual( 124 124 self.student['studycourse']['100'].cumulative_params[0], 5.4) 125 self.assertEqual(self.student['studycourse']['100'].gpa, 4.3)125 self.assertEqual(self.student['studycourse']['100'].gpa, '4.30') 126 126 self.student['studycourse'].imported_cgpa = 6.6 127 127 self.assertEqual( -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py
r14442 r14576 144 144 'validated_by,validation_date,' 145 145 'student_id,matric_number,number_of_tickets,certcode,cgpa\r\n' 146 '0.0 ,,,100,2012,A,100,,,,,A111111,234,1,CERT1,0.0\r\n'146 '0.00,,,100,2012,A,100,,,,,A111111,234,1,CERT1,0.0\r\n' 147 147 ) 148 148 return … … 167 167 result, 168 168 'automatic,ca,carry_over,code,credits,dcode,fcode,level,level_session,' 169 'mandatory, passmark,score,semester,title,student_id,certcode,'169 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 170 170 'display_fullname,matric_number\r\n' 171 '1,,1,CRS1,100,DEP1,FAC1,100,2012,0, 100,,2,Course 1,A111111,CERT1,'171 '1,,1,CRS1,100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,' 172 172 '"TESTER, Anna M.",234\r\n' 173 173 )
Note: See TracChangeset for help on using the changeset viewer.