Ignore:
Timestamp:
1 Jul 2015, 18:35:23 (10 years ago)
Author:
Henrik Bettermann
Message:

Move VERDICTS_DICT to KofaUtils?.

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

Legend:

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

    r13103 r13125  
    2424from waeup.kofa.interfaces import (
    2525    IKofaObject, academic_sessions_vocab, validate_email, ICSVExporter,
    26     ContextualDictSourceFactoryBase)
     26    ContextualDictSourceFactoryBase, IKofaUtils)
    2727from waeup.kofa.interfaces import MessageFactory as _
    2828from waeup.kofa.schema import TextLineChoice, FormattedDate, PhoneNumber
     
    5757    """
    5858    def getValues(self, context):
    59         verdicts_dict = getUtility(IStudentsUtils).VERDICTS_DICT
     59        verdicts_dict = getUtility(IKofaUtils).VERDICTS_DICT
    6060        return sorted(verdicts_dict.keys())
    6161
     
    6464
    6565    def getTitle(self, context, value):
    66         verdicts_dict = getUtility(IStudentsUtils).VERDICTS_DICT
     66        verdicts_dict = getUtility(IKofaUtils).VERDICTS_DICT
    6767        if value != '0':
    6868            return verdicts_dict[value] + ' (%s)' % value
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r13124 r13125  
    928928        return None
    929929
    930     VERDICTS_DICT = {
    931         '0': _('(not yet)'),
    932         'A': 'Successful student',
    933         'B': 'Student with carryover courses',
    934         'C': 'Student on probation',
    935         }
    936 
    937930    SEPARATORS_DICT = {
    938931        }
Note: See TracChangeset for help on using the changeset viewer.