- Timestamp:
- 1 Jul 2015, 18:35:23 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r13119 r13125 561 561 562 562 def _set_verdicts(self): 563 verdicts = getUtility(I StudentsUtils).VERDICTS_DICT563 verdicts = getUtility(IKofaUtils).VERDICTS_DICT 564 564 self.verdicts = verdicts.items() 565 565 return -
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 } -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r13124 r13125 200 200 } 201 201 202 VERDICTS_DICT = { 203 '0': _('(not yet)'), 204 'A': 'Successful student', 205 'B': 'Student with carryover courses', 206 'C': 'Student on probation', 207 } 208 202 209 #: Set positive number for allowed max, negative for required min 203 210 #: avail.
Note: See TracChangeset for help on using the changeset viewer.