Changeset 7841 for main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
- Timestamp:
- 12 Mar 2012, 08:04:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
r7837 r7841 83 83 84 84 def getValues(self): 85 subjects_dict = getUtility(IKofaUtils). getExamSubjectsDict()85 subjects_dict = getUtility(IKofaUtils).EXAM_SUBJECTS_DICT 86 86 return sorted(subjects_dict.keys()) 87 87 88 88 def getTitle(self, value): 89 subjects_dict = getUtility(IKofaUtils). getExamSubjectsDict()89 subjects_dict = getUtility(IKofaUtils).EXAM_SUBJECTS_DICT 90 90 return "%s:" % subjects_dict[value] 91 91 … … 93 93 94 94 def getValues(self): 95 grades_dict = getUtility(IKofaUtils). getExamGradesDict()95 grades_dict = getUtility(IKofaUtils).EXAM_GRADES_DICT 96 96 return sorted(grades_dict.keys()) 97 97 98 98 def getTitle(self, value): 99 grades_dict = getUtility(IKofaUtils). getExamGradesDict()99 grades_dict = getUtility(IKofaUtils).EXAM_GRADES_DICT 100 100 return grades_dict[value] 101 101 … … 189 189 """ 190 190 191 def storage(): 192 """Return the initial storage path of the data center. 193 """ 191 PORTAL_LANGUAGE = Attribute("Dict of global language setting") 192 PREFERRED_LANGUAGES_DICT = Attribute("Dict of preferred languages") 193 EXAM_SUBJECTS_DICT = Attribute("Dict of examination subjects") 194 EXAM_GRADES_DICT = Attribute("Dict of examination grades") 195 INST_TYPES_DICT = Attribute("Dict if institution types") 196 STUDY_MODES_DICT = Attribute("Dict of study modes") 197 APP_CATS_DICT = Attribute("Dict of application categories") 198 SEMESTER_DICT = Attribute("Dict of semesters or trimesters") 194 199 195 200 def sendContactForm( … … 214 219 def genPassword(length, chars): 215 220 """Generate a random password. 216 """217 218 def getVerdictsDict():219 """Provide a dict of verdicts.220 221 """ 221 222
Note: See TracChangeset for help on using the changeset viewer.