Ignore:
Timestamp:
23 Feb 2012, 12:25:23 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix sources.

File:
1 edited

Legend:

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

    r7683 r7688  
    103103    """
    104104    def getValues(self, context):
    105         self.appcats_dict = getUtility(
     105        appcats_dict = getUtility(
    106106            IApplicantsUtils).getApplicationTypeDict()
    107         return sorted(self.appcats_dict.keys())
     107        return sorted(appcats_dict.keys())
    108108
    109109    def getToken(self, context, value):
     
    111111
    112112    def getTitle(self, context, value):
    113         return self.appcats_dict[value][0]
     113        appcats_dict = getUtility(
     114            IApplicantsUtils).getApplicationTypeDict()
     115        return appcats_dict[value][0]
    114116
    115117# Maybe Uniben still needs this ...
     
    119121#    """
    120122#    def getValues(self, context):
    121 #        self.apppins_dict = getUtility(
     123#        apppins_dict = getUtility(
    122124#            IApplicantsUtils).getApplicationTypeDict()
    123 #        return sorted(self.appcats_dict.keys())
     125#        return sorted(appcats_dict.keys())
    124126#
    125127#    def getToken(self, context, value):
     
    127129#
    128130#    def getTitle(self, context, value):
     131#        apppins_dict = getUtility(
     132#            IApplicantsUtils).getApplicationTypeDict()
    129133#        return u"%s (%s)" % (
    130 #            self.apppins_dict[value][1],self.apppins_dict[value][0])
     134#            apppins_dict[value][1],self.apppins_dict[value][0])
    131135
    132136class ApplicantContainerProviderSource(BasicSourceFactory):
Note: See TracChangeset for help on using the changeset viewer.