Ignore:
Timestamp:
4 Jun 2012, 09:59:21 (12 years ago)
Author:
Henrik Bettermann
Message:

Replace default value of verdicts. Use 'NY' (not yet) instead of '0' (zero).

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  
    326326        title = _(u'Current Verdict'),
    327327        source = VerdictSource(),
    328         default = '0',
     328        default = 'NY',
    329329        required = False,
    330330        )
     
    333333        title = _(u'Previous Verdict'),
    334334        source = VerdictSource(),
    335         default = '0',
     335        default = 'NY',
    336336        required = False,
    337337        )
     
    377377        title = _(u'Verdict'),
    378378        source = VerdictSource(),
    379         default = '0',
     379        default = 'NY',
    380380        required = False,
    381381        )
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r8596 r8621  
    745745        self.assertEqual(student['studycourse'].current_session, 2005) # +1
    746746        self.assertEqual(student['studycourse'].current_level, 200) # +100
    747         self.assertEqual(student['studycourse'].current_verdict, '0') # 0 = not set
     747        self.assertEqual(student['studycourse'].current_verdict, 'NY') # NY = not set
    748748        self.assertEqual(student['studycourse'].previous_verdict, 'A')
    749749        self.browser.getControl(name="transition").value = ['register_courses']
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r8494 r8621  
    127127            'entry_mode,entry_session,previous_verdict,student_id\r\n'
    128128
    129             ',,,0,,,0,\r\n'
     129            ',,,NY,,,NY,\r\n'
    130130            )
    131131        return
     
    144144            'entry_mode,entry_session,previous_verdict,student_id\r\n'
    145145
    146             'CERT1,200,2012,0,ug_ft,2010,0,A111111\r\n'
     146            'CERT1,200,2012,NY,ug_ft,2010,NY,A111111\r\n'
    147147            )
    148148        return
     
    160160            'entry_mode,entry_session,previous_verdict,student_id\r\n'
    161161
    162             'CERT1,200,2012,0,ug_ft,2010,0,A111111\r\n'
     162            'CERT1,200,2012,NY,ug_ft,2010,NY,A111111\r\n'
    163163            )
    164164        return
     
    175175            'entry_mode,entry_session,previous_verdict,student_id\r\n'
    176176
    177             'CERT1,200,2012,0,ug_ft,2010,0,A111111\r\n'
     177            'CERT1,200,2012,NY,ug_ft,2010,NY,A111111\r\n'
    178178            )
    179179        return
     
    210210            result,
    211211            'level,level_session,level_verdict,student_id\r\n'
    212             ',,0,\r\n'
     212            ',,NY,\r\n'
    213213            )
    214214        return
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r8597 r8621  
    251251        student['studycourse'].current_session = new_session
    252252        verdict = student['studycourse'].current_verdict
    253         student['studycourse'].current_verdict = '0'
     253        student['studycourse'].current_verdict = 'NY'
    254254        student['studycourse'].previous_verdict = verdict
    255255        return
     
    411411
    412412    VERDICTS_DICT = {
    413         '0': _('(not yet)'),
     413        'NY': _('(not yet)'),
    414414        'A': 'Successful student',
    415415        'B': 'Student with carryover courses',
Note: See TracChangeset for help on using the changeset viewer.