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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py

    r7837 r7841  
    8383
    8484    def getValues(self):
    85         subjects_dict = getUtility(IKofaUtils).getExamSubjectsDict()
     85        subjects_dict = getUtility(IKofaUtils).EXAM_SUBJECTS_DICT
    8686        return sorted(subjects_dict.keys())
    8787
    8888    def getTitle(self, value):
    89         subjects_dict = getUtility(IKofaUtils).getExamSubjectsDict()
     89        subjects_dict = getUtility(IKofaUtils).EXAM_SUBJECTS_DICT
    9090        return "%s:" % subjects_dict[value]
    9191
     
    9393
    9494    def getValues(self):
    95         grades_dict = getUtility(IKofaUtils).getExamGradesDict()
     95        grades_dict = getUtility(IKofaUtils).EXAM_GRADES_DICT
    9696        return sorted(grades_dict.keys())
    9797
    9898    def getTitle(self, value):
    99         grades_dict = getUtility(IKofaUtils).getExamGradesDict()
     99        grades_dict = getUtility(IKofaUtils).EXAM_GRADES_DICT
    100100        return grades_dict[value]
    101101
     
    189189    """
    190190
    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")
    194199
    195200    def sendContactForm(
     
    214219    def genPassword(length, chars):
    215220        """Generate a random password.
    216         """
    217 
    218     def getVerdictsDict():
    219         """Provide a dict of verdicts.
    220221        """
    221222
Note: See TracChangeset for help on using the changeset viewer.