Changeset 10924 for main/waeup.aaue/trunk
- Timestamp:
- 15 Jan 2014, 10:17:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py
r10311 r10924 43 43 from waeup.aaue.payments.interfaces import ICustomOnlinePayment 44 44 45 programme_types_vocab = SimpleKofaVocabulary( 46 (_('5-Year Undergraduate Programme'), 'regular'), 47 (_('4-Year Undergraduate Programme (Direct Entry)'), 'direct'), 48 (_('not applicable'), 'na'), 49 ) 50 45 51 class ICustomUGApplicant(IApplicantBaseData): 46 52 """An undergraduate applicant. … … 50 56 adding them to the UG_OMIT* tuples. 51 57 """ 58 59 programme_type = schema.Choice( 60 title = _(u'Programme Type'), 61 vocabulary = programme_types_vocab, 62 required = True, 63 ) 52 64 53 65 nationality = schema.Choice( … … 213 225 raise Invalid(_("2nd choice course must differ from 1st choice course.")) 214 226 227 ICustomUGApplicant['programme_type'].order = IApplicantBaseData[ 228 'reg_number'].order 229 215 230 class ICustomPGApplicant(INigeriaPGApplicant): 216 231 """A postgraduate applicant. … … 252 267 """ 253 268 269 date_of_birth = FormattedDate( 270 title = _(u'Date of Birth'), 271 required = True, 272 show_year = True, 273 ) 274 275 ICustomUGApplicantEdit['date_of_birth'].order = ICustomUGApplicant[ 276 'date_of_birth'].order 277 254 278 class ICustomPGApplicantEdit(INigeriaPGApplicantEdit): 255 279 """A postgraduate applicant interface for editing.
Note: See TracChangeset for help on using the changeset viewer.