- Timestamp:
- 15 Feb 2022, 17:42:22 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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(),
Note: See TracChangeset for help on using the changeset viewer.