Changeset 7688 for main/waeup.sirp/trunk
- Timestamp:
- 23 Feb 2012, 12:25:23 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 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): -
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r7681 r7688 39 39 """ 40 40 def getValues(self, context): 41 self.verdicts_dict = getUtility(IStudentsUtils).getVerdictsDict()42 return self.verdicts_dict.keys()41 verdicts_dict = getUtility(IStudentsUtils).getVerdictsDict() 42 return verdicts_dict.keys() 43 43 44 44 def getToken(self, context, value): … … 46 46 47 47 def getTitle(self, context, value): 48 return self.verdicts_dict[value] 48 verdicts_dict = getUtility(IStudentsUtils).getVerdictsDict() 49 return verdicts_dict[value] 49 50 50 51 -
main/waeup.sirp/trunk/src/waeup/sirp/university/vocabularies.py
r7681 r7688 41 41 """ 42 42 def getValues(self, context): 43 se lf.semesters_dict = getUtility(ISIRPUtils).getSemesterDict()44 return se lf.semesters_dict.keys()43 semesters_dict = getUtility(ISIRPUtils).getSemesterDict() 44 return semesters_dict.keys() 45 45 46 46 def getToken(self, context, value): … … 48 48 49 49 def getTitle(self, context, value): 50 return self.semesters_dict[value] 50 semesters_dict = getUtility(ISIRPUtils).getSemesterDict() 51 return semesters_dict[value] 51 52 52 53 class InstTypeSource(BasicContextualSourceFactory): … … 55 56 """ 56 57 def getValues(self, context): 57 self.insttypes_dict = getUtility(ISIRPUtils).getInstTypeDict()58 return sorted( self.insttypes_dict.keys())58 insttypes_dict = getUtility(ISIRPUtils).getInstTypeDict() 59 return sorted(insttypes_dict.keys()) 59 60 60 61 def getToken(self, context, value): … … 62 63 63 64 def getTitle(self, context, value): 64 return self.insttypes_dict[value] 65 insttypes_dict = getUtility(ISIRPUtils).getInstTypeDict() 66 return insttypes_dict[value] 65 67 66 68 class AppCatSource(BasicContextualSourceFactory): … … 69 71 """ 70 72 def getValues(self, context): 71 self.appcats_dict = getUtility(ISIRPUtils).getAppCatDict()72 return sorted( self.appcats_dict.keys())73 appcats_dict = getUtility(ISIRPUtils).getAppCatDict() 74 return sorted(appcats_dict.keys()) 73 75 74 76 def getToken(self, context, value): … … 76 78 77 79 def getTitle(self, context, value): 78 return self.appcats_dict[value] 80 appcats_dict = getUtility(ISIRPUtils).getAppCatDict() 81 return appcats_dict[value] 79 82 80 83 class StudyModeSource(BasicContextualSourceFactory): … … 83 86 """ 84 87 def getValues(self, context): 85 s elf.studymodes_dict = getUtility(ISIRPUtils).getStudyModesDict()86 return sorted(s elf.studymodes_dict.keys())88 studymodes_dict = getUtility(ISIRPUtils).getStudyModesDict() 89 return sorted(studymodes_dict.keys()) 87 90 88 91 def getToken(self, context, value): … … 90 93 91 94 def getTitle(self, context, value): 92 return self.studymodes_dict[value] 95 studymodes_dict = getUtility(ISIRPUtils).getStudyModesDict() 96 return studymodes_dict[value] 93 97 94 98 class CourseSource(BasicSourceFactory):
Note: See TracChangeset for help on using the changeset viewer.