Ignore:
Timestamp:
19 Mar 2012, 06:51:42 (13 years ago)
Author:
uli
Message:

Simplify the design of EXAM_GRADES (former EXAM_GRADES_DICT). Grades
are now sorted automatically by their position in the tuple. CAREFUL!
This means that most probably changes in custom packages are
neccessary!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r7874 r7917  
    9999        }
    100100
    101     EXAM_GRADES_DICT = {
    102         'A': (1, 'Best'),
    103         'B': (2, 'Better'),
    104         'C': (3, 'Good'),
    105         }
     101    #: Exam grades. The tuple is sorted as it should be displayed in
     102    #: select boxes.
     103    EXAM_GRADES = (
     104        ('A', 'Best'),
     105        ('B', 'Better'),
     106        ('C', 'Good'),
     107        )
    106108
    107109    INST_TYPES_DICT = {
Note: See TracChangeset for help on using the changeset viewer.