Ignore:
Timestamp:
12 Mar 2012, 08:04:03 (13 years ago)
Author:
Henrik Bettermann
Message:

We don't need methods to fetch dictionaries.

Update interfaces.

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  
    7373
    7474    def longtitle(self):
    75         insttypes_dict = getUtility(IKofaUtils).getInstTypeDict()
     75        insttypes_dict = getUtility(IKofaUtils).INST_TYPES_DICT
    7676        return "%s %s (%s)" % (
    7777            insttypes_dict[self.title_prefix],
  • main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.py

    r7819 r7841  
    6161
    6262    def longtitle(self):
    63         insttypes_dict = getUtility(IKofaUtils).getInstTypeDict()
     63        insttypes_dict = getUtility(IKofaUtils).INST_TYPES_DICT
    6464        result = "%s %s (%s)" % (
    6565            insttypes_dict[self.title_prefix],
  • main/waeup.kofa/trunk/src/waeup/kofa/university/vocabularies.py

    r7838 r7841  
    4646            # see sources below
    4747            from waeup.kofa.interfaces import IKofaUtils
    48             return getUtility(IKofaUtils).getSemesterDict().keys()
     48            return getUtility(IKofaUtils).SEMESTER_DICT.keys()
    4949        except:
    5050            return [9]
     
    5656        try:
    5757            from waeup.kofa.interfaces import IKofaUtils
    58             semesters_dict = getUtility(IKofaUtils).getSemesterDict()
     58            semesters_dict = getUtility(IKofaUtils).SEMESTER_DICT
    5959            return semesters_dict[value]
    6060        except:
     
    6666    """
    6767    def getValues(self, context):
    68         insttypes_dict = getUtility(IKofaUtils).getInstTypeDict()
     68        insttypes_dict = getUtility(IKofaUtils).INST_TYPES_DICT
    6969        return sorted(insttypes_dict.keys())
    7070
     
    7373
    7474    def getTitle(self, context, value):
    75         insttypes_dict = getUtility(IKofaUtils).getInstTypeDict()
     75        insttypes_dict = getUtility(IKofaUtils).INST_TYPES_DICT
    7676        return insttypes_dict[value]
    7777
     
    8181    """
    8282    def getValues(self, context):
    83         appcats_dict = getUtility(IKofaUtils).getAppCatDict()
     83        appcats_dict = getUtility(IKofaUtils).APP_CATS_DICT
    8484        return sorted(appcats_dict.keys())
    8585
     
    8888
    8989    def getTitle(self, context, value):
    90         appcats_dict = getUtility(IKofaUtils).getAppCatDict()
     90        appcats_dict = getUtility(IKofaUtils).APP_CATS_DICT
    9191        return appcats_dict[value]
    9292
     
    9696    """
    9797    def getValues(self, context):
    98         studymodes_dict = getUtility(IKofaUtils).getStudyModesDict()
     98        studymodes_dict = getUtility(IKofaUtils).STUDY_MODES_DICT
    9999        return sorted(studymodes_dict.keys())
    100100
     
    103103
    104104    def getTitle(self, context, value):
    105         studymodes_dict = getUtility(IKofaUtils).getStudyModesDict()
     105        studymodes_dict = getUtility(IKofaUtils).STUDY_MODES_DICT
    106106        return studymodes_dict[value]
    107107
Note: See TracChangeset for help on using the changeset viewer.