Changeset 13125 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 1 Jul 2015, 18:35:23 (10 years ago)
- 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 24 24 from waeup.kofa.interfaces import ( 25 25 IKofaObject, academic_sessions_vocab, validate_email, ICSVExporter, 26 ContextualDictSourceFactoryBase )26 ContextualDictSourceFactoryBase, IKofaUtils) 27 27 from waeup.kofa.interfaces import MessageFactory as _ 28 28 from waeup.kofa.schema import TextLineChoice, FormattedDate, PhoneNumber … … 57 57 """ 58 58 def getValues(self, context): 59 verdicts_dict = getUtility(I StudentsUtils).VERDICTS_DICT59 verdicts_dict = getUtility(IKofaUtils).VERDICTS_DICT 60 60 return sorted(verdicts_dict.keys()) 61 61 … … 64 64 65 65 def getTitle(self, context, value): 66 verdicts_dict = getUtility(I StudentsUtils).VERDICTS_DICT66 verdicts_dict = getUtility(IKofaUtils).VERDICTS_DICT 67 67 if value != '0': 68 68 return verdicts_dict[value] + ' (%s)' % value -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r13124 r13125 928 928 return None 929 929 930 VERDICTS_DICT = {931 '0': _('(not yet)'),932 'A': 'Successful student',933 'B': 'Student with carryover courses',934 'C': 'Student on probation',935 }936 937 930 SEPARATORS_DICT = { 938 931 }
Note: See TracChangeset for help on using the changeset viewer.