Changeset 7841 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 12 Mar 2012, 08:04:03 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/university
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/department.py
r7819 r7841 73 73 74 74 def longtitle(self): 75 insttypes_dict = getUtility(IKofaUtils). getInstTypeDict()75 insttypes_dict = getUtility(IKofaUtils).INST_TYPES_DICT 76 76 return "%s %s (%s)" % ( 77 77 insttypes_dict[self.title_prefix], -
main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.py
r7819 r7841 61 61 62 62 def longtitle(self): 63 insttypes_dict = getUtility(IKofaUtils). getInstTypeDict()63 insttypes_dict = getUtility(IKofaUtils).INST_TYPES_DICT 64 64 result = "%s %s (%s)" % ( 65 65 insttypes_dict[self.title_prefix], -
main/waeup.kofa/trunk/src/waeup/kofa/university/vocabularies.py
r7838 r7841 46 46 # see sources below 47 47 from waeup.kofa.interfaces import IKofaUtils 48 return getUtility(IKofaUtils). getSemesterDict().keys()48 return getUtility(IKofaUtils).SEMESTER_DICT.keys() 49 49 except: 50 50 return [9] … … 56 56 try: 57 57 from waeup.kofa.interfaces import IKofaUtils 58 semesters_dict = getUtility(IKofaUtils). getSemesterDict()58 semesters_dict = getUtility(IKofaUtils).SEMESTER_DICT 59 59 return semesters_dict[value] 60 60 except: … … 66 66 """ 67 67 def getValues(self, context): 68 insttypes_dict = getUtility(IKofaUtils). getInstTypeDict()68 insttypes_dict = getUtility(IKofaUtils).INST_TYPES_DICT 69 69 return sorted(insttypes_dict.keys()) 70 70 … … 73 73 74 74 def getTitle(self, context, value): 75 insttypes_dict = getUtility(IKofaUtils). getInstTypeDict()75 insttypes_dict = getUtility(IKofaUtils).INST_TYPES_DICT 76 76 return insttypes_dict[value] 77 77 … … 81 81 """ 82 82 def getValues(self, context): 83 appcats_dict = getUtility(IKofaUtils). getAppCatDict()83 appcats_dict = getUtility(IKofaUtils).APP_CATS_DICT 84 84 return sorted(appcats_dict.keys()) 85 85 … … 88 88 89 89 def getTitle(self, context, value): 90 appcats_dict = getUtility(IKofaUtils). getAppCatDict()90 appcats_dict = getUtility(IKofaUtils).APP_CATS_DICT 91 91 return appcats_dict[value] 92 92 … … 96 96 """ 97 97 def getValues(self, context): 98 studymodes_dict = getUtility(IKofaUtils). getStudyModesDict()98 studymodes_dict = getUtility(IKofaUtils).STUDY_MODES_DICT 99 99 return sorted(studymodes_dict.keys()) 100 100 … … 103 103 104 104 def getTitle(self, context, value): 105 studymodes_dict = getUtility(IKofaUtils). getStudyModesDict()105 studymodes_dict = getUtility(IKofaUtils).STUDY_MODES_DICT 106 106 return studymodes_dict[value] 107 107
Note: See TracChangeset for help on using the changeset viewer.