Ignore:
Timestamp:
27 Sep 2013, 09:52:51 (11 years ago)
Author:
Henrik Bettermann
Message:

Customize verdicts.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r10443 r10656  
    9696        self.assertEqual(self.student['studycourse']['100'].gpa_params[2], 82.0)
    9797        # sgpa = 82 / 23
    98         self.assertEqual(self.student['studycourse']['100'].gpa_params[0], 3.57)
     98        self.assertEqual(self.student['studycourse']['100'].gpa_params[0], 3.565)
    9999        return
    100100
     
    264264        self.student['studycourse'].current_verdict = 'C'
    265265        self.assertEqual(utils.getReturningData(self.student),(2005, 110))
    266         self.student['studycourse'].current_verdict = 'D'
     266        self.student['studycourse'].current_verdict = 'NEOR'
    267267        self.assertEqual(utils.getReturningData(self.student),(2005, 100))
    268268        return
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r10641 r10656  
    2828
    2929    """
     30
     31    VERDICTS_DICT = {
     32        '0': 'not yet',
     33        'A': 'Successful student',
     34        'B': 'Student with carryover courses',
     35        'C': 'Student on probation',
     36        #'D': 'Withdrawn from the faculty',
     37        #'E': 'Student who were previously on probation',
     38        #'F': 'Medical case',
     39        #'G': 'Absent from examination',
     40        #'H': 'Withheld results',
     41        #'I': 'Expelled/rusticated/suspended student',
     42        #'J': 'Temporary withdrawn from the university',
     43        #'K': 'Unregistered student',
     44        #'L': 'Referred student',
     45        #'M': 'Reinstatement',
     46        #'N': 'Student on transfer',
     47        #'O': 'NCE-III repeater',
     48        #'Y': 'No previous verdict',
     49        #'X': 'New 300 level student',
     50        'Z': 'Successful student (provisional)',
     51        #'A1': 'First Class',
     52        #'A2': 'Second Class Upper',
     53        #'A3': 'Second Class Lower',
     54        #'A4': 'Third Class',
     55        #'A5': 'Pass',
     56        #'A6': 'Distinction',
     57        #'A7': 'Credit',
     58        #'A8': 'Merit',
     59        'NEOR': 'No evidence of registration',
     60        'NEOV': 'No evidence of verification',
     61        'FRNS': 'Faculty requirements not satisfied',
     62        }
    3063
    3164    gpa_boundaries = ((1, 'FRNS'),
Note: See TracChangeset for help on using the changeset viewer.