Changeset 7844
- Timestamp:
- 12 Mar 2012, 11:38:09 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r7833 r7844 162 162 year = data['year'] 163 163 code = u'%s%s' % (data['prefix'], year) 164 appcats_dict = getUtility(IApplicantsUtils). getApplicationTypeDict()164 appcats_dict = getUtility(IApplicantsUtils).APP_TYPES_DICT 165 165 title = appcats_dict[data['prefix']][0] 166 166 title = u'%s %s/%s' % (title, year, year + 1) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r7819 r7844 105 105 def getValues(self, context): 106 106 appcats_dict = getUtility( 107 IApplicantsUtils). getApplicationTypeDict()107 IApplicantsUtils).APP_TYPES_DICT 108 108 return sorted(appcats_dict.keys()) 109 109 … … 113 113 def getTitle(self, context, value): 114 114 appcats_dict = getUtility( 115 IApplicantsUtils). getApplicationTypeDict()115 IApplicantsUtils).APP_TYPES_DICT 116 116 return appcats_dict[value][0] 117 117 … … 123 123 # def getValues(self, context): 124 124 # apppins_dict = getUtility( 125 # IApplicantsUtils). getApplicationTypeDict()125 # IApplicantsUtils).APP_TYPES_DICT 126 126 # return sorted(appcats_dict.keys()) 127 127 # … … 131 131 # def getTitle(self, context, value): 132 132 # apppins_dict = getUtility( 133 # IApplicantsUtils). getApplicationTypeDict()133 # IApplicantsUtils).APP_TYPES_DICT 134 134 # return u"%s (%s)" % ( 135 135 # apppins_dict[value][1],self.apppins_dict[value][0]) … … 176 176 """A collection of methods which are subject to customization. 177 177 """ 178 pass 178 179 APP_TYPES_DICT = Attribute(' dict of application types') 179 180 180 181 class IApplicantsRoot(IKofaObject, IContainer): … … 465 466 """ 466 467 467 history = Attribute('Object history, a list of messages .')468 history = Attribute('Object history, a list of messages') 468 469 state = Attribute('The application state of an applicant') 469 470 display_fullname = Attribute('The fullname of an applicant') -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
r7811 r7844 27 27 grok.implements(IApplicantsUtils) 28 28 29 def getApplicationTypeDict(self): 30 """Provide a dictionary of application types. 31 """ 32 return { 33 'pude': ['Post UDE Screening', 'PUDE'], 34 'prence': ['Pre-NCE Programme', 'PRE'], 35 'sandwich': ['Part Time Degree in Education', 'SAND'], 36 'pt': ['Part-Time Degree Programmes', 'PTP'], 37 'pume': ['Post UME Screening Test', 'PUME'], 38 'app': ['General Studies', 'APP'], 39 'cest': ['Common Entry Screening Test', 'CEST'], 40 'ct': ['Certificate Programmes', 'CTP'], 41 'dp': ['Diploma Programmes', 'DPP'], 42 'pce': ['PCE Screening', 'PCE'] 43 } 29 APP_TYPES_DICT = { 30 'app': ['General Studies', 'APP'], 31 }
Note: See TracChangeset for help on using the changeset viewer.