Changeset 17744 for main/waeup.fceokene/trunk/src/waeup/fceokene/applicants
- Timestamp:
- 23 Apr 2024, 16:13:48 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py
r17359 r17744 31 31 from waeup.kofa.schoolgrades import ResultEntryField 32 32 from waeup.kofa.students.vocabularies import nats_vocab, GenderSource 33 from waeup.kofa.applicants.interfaces import contextual_reg_num_source 33 from waeup.kofa.applicants.interfaces import ( 34 contextual_reg_num_source, 35 contextual_email_source, 36 IApplicantRegisterUpdate) 34 37 from kofacustom.nigeria.applicants.interfaces import ( 35 38 LGASource, high_qual, high_grade, exam_types, … … 158 161 ) 159 162 160 email = schema.ASCIILine(163 email = TextLineChoice( 161 164 title = _(u'Email Address'), 162 165 required = True, 163 166 constraint=validate_email, 167 source = contextual_email_source, 164 168 ) 165 169 … … 243 247 ) 244 248 245 email = schema.ASCIILine(249 email = TextLineChoice( 246 250 title = _(u'Email Address'), 247 251 required = True, 248 252 constraint=validate_email, 253 source = contextual_email_source, 249 254 ) 250 255 … … 286 291 adding them to the OMIT* tuples. 287 292 """ 293 294 email = TextLineChoice( 295 title = _(u'Email Address'), 296 required = True, 297 constraint=validate_email, 298 source = contextual_email_source, 299 ) 288 300 289 301 nationality = schema.Choice( … … 456 468 ) 457 469 470 ICustomUGApplicant[ 471 'email'].order = INigeriaUGApplicant['email'].order 458 472 459 473 class ICustomPGApplicant(INigeriaPGApplicant): … … 464 478 adding them to the PG_OMIT* tuples. 465 479 """ 480 481 email = TextLineChoice( 482 title = _(u'Email Address'), 483 required = True, 484 constraint=validate_email, 485 source = contextual_email_source, 486 ) 487 488 ICustomPGApplicant[ 489 'email'].order = INigeriaPGApplicant['email'].order 466 490 467 491 class ICustomApplicant(ICustomUGApplicant, ICustomPGApplicant, … … 497 521 """ 498 522 499 500 email = schema.ASCIILine( 523 email = TextLineChoice( 501 524 title = _(u'Email Address'), 502 525 required = True, 503 526 constraint=validate_email, 527 source = contextual_email_source, 504 528 ) 505 529 date_of_birth = FormattedDate( … … 539 563 """ 540 564 541 email = schema.ASCIILine(565 email = TextLineChoice( 542 566 title = _(u'Email Address'), 543 567 required = True, 544 568 constraint=validate_email, 569 source = contextual_email_source, 545 570 ) 546 571 date_of_birth = FormattedDate( … … 580 605 """ 581 606 607 class ICustomApplicantRegisterUpdate(IApplicantRegisterUpdate): 608 """This is a representation of an applicant for first-time registration. 609 This interface is used when applicants use the registration page to 610 update their records. 611 """ 612 613 email = TextLineChoice( 614 title = _(u'Email Address'), 615 required = False, 616 constraint=validate_email, 617 source = contextual_email_source, 618 ) 619
Note: See TracChangeset for help on using the changeset viewer.