Changeset 7688 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 23 Feb 2012, 12:25:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r7683 r7688 103 103 """ 104 104 def getValues(self, context): 105 self.appcats_dict = getUtility(105 appcats_dict = getUtility( 106 106 IApplicantsUtils).getApplicationTypeDict() 107 return sorted( self.appcats_dict.keys())107 return sorted(appcats_dict.keys()) 108 108 109 109 def getToken(self, context, value): … … 111 111 112 112 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] 114 116 115 117 # Maybe Uniben still needs this ... … … 119 121 # """ 120 122 # def getValues(self, context): 121 # self.apppins_dict = getUtility(123 # apppins_dict = getUtility( 122 124 # IApplicantsUtils).getApplicationTypeDict() 123 # return sorted( self.appcats_dict.keys())125 # return sorted(appcats_dict.keys()) 124 126 # 125 127 # def getToken(self, context, value): … … 127 129 # 128 130 # def getTitle(self, context, value): 131 # apppins_dict = getUtility( 132 # IApplicantsUtils).getApplicationTypeDict() 129 133 # 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]) 131 135 132 136 class ApplicantContainerProviderSource(BasicSourceFactory):
Note: See TracChangeset for help on using the changeset viewer.