Changeset 16807
- Timestamp:
- 15 Feb 2022, 17:42:22 (3 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r16804 r16807 258 258 #form_fields['perm_address'].custom_widget = BytesDisplayWidget 259 259 return form_fields 260 if self.target is not None and self.target == 'f rench':260 if self.target is not None and self.target == 'flc': 261 261 form_fields = grok.AutoFields(IFrenchApplicant) 262 262 for field in REGISTRATION_OMIT_DISPLAY_FIELDS: … … 458 458 form_fields['registration_cats'].for_display = True 459 459 return form_fields 460 if self.target is not None and self.target == 'f rench':460 if self.target is not None and self.target == 'flc': 461 461 form_fields = grok.AutoFields(IFrenchApplicant) 462 462 for field in REGISTRATION_OMIT_MANAGE_FIELDS: … … 543 543 form_fields['registration_cats'].for_display = True 544 544 return form_fields 545 if self.target is not None and self.target == 'f rench':545 if self.target is not None and self.target == 'flc': 546 546 form_fields = grok.AutoFields(IFrenchApplicant) 547 547 for field in REGISTRATION_OMIT_EDIT_FIELDS: … … 721 721 for field in PUDE_OMIT_PDF_FIELDS: 722 722 form_fields = form_fields.omit(field) 723 elif self.target is not None and self.target == 'f rench':723 elif self.target is not None and self.target == 'flc': 724 724 form_fields = grok.AutoFields(IFrenchApplicant) 725 725 for field in REGISTRATION_OMIT_PDF_FIELDS: -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py
r16804 r16807 146 146 """ 147 147 def getValues(self): 148 return [' n', 'c', 'p']148 return ['c', 'p'] 149 149 150 150 def getToken(self, value): … … 152 152 153 153 def getTitle(self, value): 154 if value == 'n':155 return _('none')154 #if value == 'n': 155 # return _('none') 156 156 if value == 'c': 157 157 return _('conversational') 158 if value == ' c':158 if value == 'p': 159 159 return _('professional') 160 161 class PreferredSessionSource(BasicSourceFactory): 162 """ 163 """ 164 def getValues(self): 165 return ['m', 'e', 'w'] 166 167 def getToken(self, value): 168 return value 169 170 def getTitle(self, value): 171 if value == 'm': 172 return _('morning') 173 if value == 'e': 174 return _('evening') 175 if value == 'w': 176 return _('weekend') 160 177 161 178 class IUnibenRegistration(IKofaObject): … … 547 564 show_year = True, 548 565 ) 566 567 pref_session = schema.Choice( 568 source = PreferredSessionSource(), 569 title = _(u'Preferred Session'), 570 required = False, 571 ) 572 549 573 proficiency = schema.Choice( 550 574 source = ProficiencySource(), -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py
r16804 r16807 68 68 'tscf': ['Transcript (without student record)', 'TRF'], 69 69 'tscs': ['Transcript (with student record)', 'TRS'], 70 'f rench': ['French Language Centre', 'FR'],70 'flc': ['French Language Centre', 'FR'], 71 71 } 72 72 -
main/waeup.uniben/trunk/src/waeup/uniben/utils/utils.py
r16780 r16807 57 57 'special_ft': 'Special Full-Time', 58 58 'cdl': 'Center For Distance Learning', 59 'french': 'French Language Center', 59 60 } 60 61
Note: See TracChangeset for help on using the changeset viewer.