Ignore:
Timestamp:
26 Jan 2022, 15:19:43 (3 years ago)
Author:
Henrik Bettermann
Message:

Start customization of ICustomPGApplicant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py

    r16005 r16756  
    544544#    'reg_number'].order
    545545
    546 class ICustomPGApplicant(INigeriaPGApplicant):
     546
     547class ICustomPGApplicant(IApplicantBaseData):
    547548    """A postgraduate applicant.
    548549
     
    551552    adding them to the PG_OMIT* tuples.
    552553    """
     554
     555    nationality = schema.Choice(
     556        source = nats_vocab,
     557        title = _(u'Nationality'),
     558        required = True,
     559        )
     560    lga = schema.Choice(
     561        source = LGASource(),
     562        title = _(u'State/LGA (Nigerians only)'),
     563        required = False,
     564        )
     565    #perm_address = schema.Text(
     566    #    title = _(u'Permanent Address'),
     567    #    required = False,
     568    #    )
     569    course1 = schema.Choice(
     570        title = _(u'1st Choice Course of Study'),
     571        source = AppCatCertificateSource(),
     572        required = True,
     573        )
     574    course2 = schema.Choice(
     575        title = _(u'2nd Choice Course of Study'),
     576        source = AppCatCertificateSource(),
     577        required = False,
     578        )
     579    hq_type = schema.Choice(
     580        title = _(u'Qualification Obtained'),
     581        required = False,
     582        readonly = False,
     583        vocabulary = high_qual,
     584        )
     585    hq_fname = schema.TextLine(
     586        title = _(u'Full Name'),
     587        required = False,
     588        readonly = False,
     589        )
     590    hq_matric_no = schema.TextLine(
     591        title = _(u'Former Matric Number'),
     592        required = False,
     593        readonly = False,
     594        )
     595    hq_degree = schema.Choice(
     596        title = _(u'Class of Degree'),
     597        required = False,
     598        readonly = False,
     599        vocabulary = high_grade,
     600        )
     601    hq_school = schema.TextLine(
     602        title = _(u'Institution Attended'),
     603        required = False,
     604        readonly = False,
     605        )
     606    hq_session = schema.TextLine(
     607        title = _(u'Years Attended'),
     608        required = False,
     609        readonly = False,
     610        )
     611    hq_disc = schema.TextLine(
     612        title = _(u'Discipline'),
     613        required = False,
     614        readonly = False,
     615        )
     616    fst_sit_fname = schema.TextLine(
     617        title = _(u'Full Name'),
     618        required = False,
     619        readonly = False,
     620        )
     621    fst_sit_no = schema.TextLine(
     622        title = _(u'Exam Number'),
     623        required = False,
     624        readonly = False,
     625        )
     626    fst_sit_date = FormattedDate(
     627        title = _(u'Exam Date'),
     628        required = False,
     629        readonly = False,
     630        show_year = True,
     631        )
     632    fst_sit_type = schema.Choice(
     633        title = _(u'Exam Type'),
     634        required = False,
     635        readonly = False,
     636        vocabulary = exam_types,
     637        )
     638    fst_sit_results = schema.List(
     639        title = _(u'Exam Results'),
     640        value_type = ResultEntryField(),
     641        required = False,
     642        readonly = False,
     643        defaultFactory=list,
     644        )
     645    scd_sit_fname = schema.TextLine(
     646        title = _(u'Full Name'),
     647        required = False,
     648        readonly = False,
     649        )
     650    scd_sit_no = schema.TextLine(
     651        title = _(u'Exam Number'),
     652        required = False,
     653        readonly = False,
     654        )
     655    scd_sit_date = FormattedDate(
     656        title = _(u'Exam Date'),
     657        required = False,
     658        readonly = False,
     659        show_year = True,
     660        )
     661    scd_sit_type = schema.Choice(
     662        title = _(u'Exam Type'),
     663        required = False,
     664        readonly = False,
     665        vocabulary = exam_types,
     666        )
     667    scd_sit_results = schema.List(
     668        title = _(u'Exam Results'),
     669        value_type = ResultEntryField(),
     670        required = False,
     671        readonly = False,
     672        defaultFactory=list,
     673        )
     674    # Replaced by first and second sitting
     675    #pp_school = schema.Choice(
     676    #    title = _(u'Qualification Obtained'),
     677    #    required = False,
     678    #    readonly = False,
     679    #    vocabulary = exam_types,
     680    #    )
     681    presently_inst = schema.TextLine(
     682        title = _(u'If yes, name of institution'),
     683        required = False,
     684        readonly = False,
     685        )
     686    nysc_year = schema.Int(
     687        title = _(u'Nysc Year'),
     688        required = False,
     689        readonly = False,
     690        )
     691    nysc_lga = schema.Choice(
     692        source = LGASource(),
     693        title = _(u'Nysc Location'),
     694        description = _(u'Leave blank for exception letters.'),
     695        required = False,
     696        )
     697    employer = schema.TextLine(
     698        title = _(u'Employer'),
     699        required = False,
     700        readonly = False,
     701        )
     702    emp_position = schema.TextLine(
     703        title = _(u'Employer Position'),
     704        required = False,
     705        readonly = False,
     706        )
     707    emp_start = FormattedDate(
     708        title = _(u'Start Date'),
     709        required = False,
     710        readonly = False,
     711        show_year = True,
     712        )
     713    emp_end = FormattedDate(
     714        title = _(u'End Date'),
     715        required = False,
     716        readonly = False,
     717        show_year = True,
     718        )
     719    emp_reason = schema.TextLine(
     720        title = _(u'Reason for Leaving'),
     721        required = False,
     722        readonly = False,
     723        )
     724    employer2 = schema.TextLine(
     725        title = _(u'2nd Employer'),
     726        required = False,
     727        readonly = False,
     728        )
     729    emp2_position = schema.TextLine(
     730        title = _(u'2nd Employer Position'),
     731        required = False,
     732        readonly = False,
     733        )
     734    emp2_start = FormattedDate(
     735        title = _(u'Start Date'),
     736        required = False,
     737        readonly = False,
     738        show_year = True,
     739        )
     740    emp2_end = FormattedDate(
     741        title = _(u'End Date'),
     742        required = False,
     743        readonly = False,
     744        show_year = True,
     745        )
     746    emp2_reason = schema.TextLine(
     747        title = _(u'Reason for Leaving'),
     748        required = False,
     749        readonly = False,
     750        )
     751    notice = schema.Text(
     752        title = _(u'Notice'),
     753        required = False,
     754        readonly = False,
     755        )
     756    screening_venue = schema.TextLine(
     757        title = _(u'Screening Venue'),
     758        required = False,
     759        )
     760    screening_date = schema.TextLine(
     761        title = _(u'Screening Date'),
     762        required = False,
     763        )
     764    screening_score = schema.Float(
     765        title = _(u'Screening Score (%)'),
     766        required = False,
     767        )
     768    student_id = schema.TextLine(
     769        title = _(u'Student Id'),
     770        required = False,
     771        readonly = False,
     772        )
     773    course_admitted = schema.Choice(
     774        title = _(u'Admitted Course of Study'),
     775        source = CertificateSource(),
     776        required = False,
     777        readonly = False,
     778        )
     779    locked = schema.Bool(
     780        title = _(u'Form locked'),
     781        default = False,
     782        required = False,
     783        )
    553784
    554785class ITranscriptApplicant(IKofaObject):
     
    12801511    'fst_sit_type'].order
    12811512
    1282 class ICustomPGApplicantEdit(INigeriaPGApplicantEdit):
     1513class ICustomPGApplicantEdit(ICustomPGApplicant):
    12831514    """A postgraduate applicant interface for editing.
    12841515
     
    12921523    """
    12931524
     1525    email = schema.ASCIILine(
     1526        title = _(u'Email Address'),
     1527        required = True,
     1528        constraint=validate_email,
     1529        )
     1530    date_of_birth = FormattedDate(
     1531        title = _(u'Date of Birth'),
     1532        required = True,
     1533        show_year = True,
     1534        )
     1535
     1536ICustomPGApplicantEdit[
     1537    'date_of_birth'].order =  ICustomPGApplicant['date_of_birth'].order
     1538ICustomPGApplicantEdit[
     1539    'email'].order =  ICustomPGApplicant['email'].order
     1540
    12941541class ICustomApplicantOnlinePayment(INigeriaApplicantOnlinePayment):
    12951542    """An applicant payment via payment gateways.
Note: See TracChangeset for help on using the changeset viewer.