Changeset 8621 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 4 Jun 2012, 09:59:21 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r8595 r8621 326 326 title = _(u'Current Verdict'), 327 327 source = VerdictSource(), 328 default = ' 0',328 default = 'NY', 329 329 required = False, 330 330 ) … … 333 333 title = _(u'Previous Verdict'), 334 334 source = VerdictSource(), 335 default = ' 0',335 default = 'NY', 336 336 required = False, 337 337 ) … … 377 377 title = _(u'Verdict'), 378 378 source = VerdictSource(), 379 default = ' 0',379 default = 'NY', 380 380 required = False, 381 381 ) -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8596 r8621 745 745 self.assertEqual(student['studycourse'].current_session, 2005) # +1 746 746 self.assertEqual(student['studycourse'].current_level, 200) # +100 747 self.assertEqual(student['studycourse'].current_verdict, ' 0') # 0= not set747 self.assertEqual(student['studycourse'].current_verdict, 'NY') # NY = not set 748 748 self.assertEqual(student['studycourse'].previous_verdict, 'A') 749 749 self.browser.getControl(name="transition").value = ['register_courses'] -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r8494 r8621 127 127 'entry_mode,entry_session,previous_verdict,student_id\r\n' 128 128 129 ',,, 0,,,0,\r\n'129 ',,,NY,,,NY,\r\n' 130 130 ) 131 131 return … … 144 144 'entry_mode,entry_session,previous_verdict,student_id\r\n' 145 145 146 'CERT1,200,2012, 0,ug_ft,2010,0,A111111\r\n'146 'CERT1,200,2012,NY,ug_ft,2010,NY,A111111\r\n' 147 147 ) 148 148 return … … 160 160 'entry_mode,entry_session,previous_verdict,student_id\r\n' 161 161 162 'CERT1,200,2012, 0,ug_ft,2010,0,A111111\r\n'162 'CERT1,200,2012,NY,ug_ft,2010,NY,A111111\r\n' 163 163 ) 164 164 return … … 175 175 'entry_mode,entry_session,previous_verdict,student_id\r\n' 176 176 177 'CERT1,200,2012, 0,ug_ft,2010,0,A111111\r\n'177 'CERT1,200,2012,NY,ug_ft,2010,NY,A111111\r\n' 178 178 ) 179 179 return … … 210 210 result, 211 211 'level,level_session,level_verdict,student_id\r\n' 212 ',, 0,\r\n'212 ',,NY,\r\n' 213 213 ) 214 214 return -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r8597 r8621 251 251 student['studycourse'].current_session = new_session 252 252 verdict = student['studycourse'].current_verdict 253 student['studycourse'].current_verdict = ' 0'253 student['studycourse'].current_verdict = 'NY' 254 254 student['studycourse'].previous_verdict = verdict 255 255 return … … 411 411 412 412 VERDICTS_DICT = { 413 ' 0': _('(not yet)'),413 'NY': _('(not yet)'), 414 414 'A': 'Successful student', 415 415 'B': 'Student with carryover courses',
Note: See TracChangeset for help on using the changeset viewer.