Ignore:
Timestamp:
21 Nov 2019, 14:10:27 (5 years ago)
Author:
Henrik Bettermann
Message:

Reorganize ICustomUGApplicant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/interfaces.py

    r15809 r15838  
    3131    contextual_reg_num_source, IApplicantBaseData)
    3232from kofacustom.nigeria.applicants.interfaces import (
    33     LGASource, high_qual, high_grade, exam_types,
     33    LGASource, high_qual, high_grade, exam_types, DisabilitiesSource,
     34    programme_types_vocab, jambsubjects, validate_jamb_reg_number,
    3435    INigeriaUGApplicant, INigeriaPGApplicant,
    3536    INigeriaApplicantOnlinePayment,
     
    6162    )
    6263
    63 class ICustomUGApplicant(INigeriaUGApplicant):
     64class ICustomUGApplicant(IApplicantBaseData):
    6465    """An undergraduate applicant.
    6566
     
    6970    """
    7071
     72    disabilities = schema.Choice(
     73        title = _(u'Disability'),
     74        source = DisabilitiesSource(),
     75        required = False,
     76        )
     77    nationality = schema.Choice(
     78        source = nats_vocab,
     79        title = _(u'Nationality'),
     80        required = False,
     81        )
     82    lga = schema.Choice(
     83        source = LGASource(),
     84        title = _(u'State/LGA (Nigerians only)'),
     85        required = False,
     86        )
     87    #perm_address = schema.Text(
     88    #    title = _(u'Permanent Address'),
     89    #    required = False,
     90    #    )
     91    course1 = schema.Choice(
     92        title = _(u'1st Choice Course of Study'),
     93        source = AppCatCertificateSource(),
     94        required = True,
     95        )
     96    course2 = schema.Choice(
     97        title = _(u'2nd Choice Course of Study'),
     98        source = AppCatCertificateSource(),
     99        required = False,
     100        )
     101    programme_type = schema.Choice(
     102        title = _(u'Programme Type'),
     103        vocabulary = programme_types_vocab,
     104        required = False,
     105        )
    71106    sponsor = schema.Choice(
    72107        title = _(u'Sponsor'),
     
    74109        required = False,
    75110        )
    76 
    77111    heard_about = schema.Choice(
    78112        title = _(u'How did you hear about IU?'),
     
    80114        required = False,
    81115        )
     116    fst_sit_fname = schema.TextLine(
     117        title = _(u'Full Name'),
     118        required = False,
     119        readonly = False,
     120        )
     121    fst_sit_no = schema.TextLine(
     122        title = _(u'Exam Number'),
     123        required = False,
     124        readonly = False,
     125        )
     126    fst_sit_date = FormattedDate(
     127        title = _(u'Exam Date'),
     128        required = False,
     129        readonly = False,
     130        show_year = True,
     131        )
     132    fst_sit_type = schema.Choice(
     133        title = _(u'Exam Type'),
     134        required = False,
     135        readonly = False,
     136        vocabulary = exam_types,
     137        )
     138    fst_sit_results = schema.List(
     139        title = _(u'Exam Results'),
     140        value_type = ResultEntryField(),
     141        required = False,
     142        readonly = False,
     143        defaultFactory=list,
     144        )
     145    scd_sit_fname = schema.TextLine(
     146        title = _(u'Full Name'),
     147        required = False,
     148        readonly = False,
     149        )
     150    scd_sit_no = schema.TextLine(
     151        title = _(u'Exam Number'),
     152        required = False,
     153        readonly = False,
     154        )
     155    scd_sit_date = FormattedDate(
     156        title = _(u'Exam Date'),
     157        required = False,
     158        readonly = False,
     159        show_year = True,
     160        )
     161    scd_sit_type = schema.Choice(
     162        title = _(u'Exam Type'),
     163        required = False,
     164        readonly = False,
     165        vocabulary = exam_types,
     166        )
     167    scd_sit_results = schema.List(
     168        title = _(u'Exam Results'),
     169        value_type = ResultEntryField(),
     170        required = False,
     171        readonly = False,
     172        defaultFactory=list,
     173        )
     174    jamb_subjects = schema.Text(
     175        title = _(u'Subjects and Scores'),
     176        required = False,
     177        )
     178    jamb_subjects_list = schema.List(
     179        title = _(u'JAMB Subjects'),
     180        required = False,
     181        defaultFactory=list,
     182        value_type = schema.Choice(
     183            vocabulary = jambsubjects
     184            #source = JAMBSubjectSource(),
     185            ),
     186        )
     187    jamb_score = schema.Int(
     188        title = _(u'Total JAMB Score'),
     189        required = False,
     190        )
     191    #jamb_age = schema.Int(
     192    #    title = _(u'Age (provided by JAMB)'),
     193    #    required = False,
     194    #    )
     195    jamb_reg_number = schema.TextLine(
     196        title = _(u'JAMB Registration Number'),
     197        required = False,
     198        constraint=validate_jamb_reg_number,
     199        )
     200    notice = schema.Text(
     201        title = _(u'Notice'),
     202        required = False,
     203        )
     204    screening_venue = schema.TextLine(
     205        title = _(u'Screening Venue'),
     206        required = False,
     207        )
     208    screening_date = schema.TextLine(
     209        title = _(u'Screening Date'),
     210        required = False,
     211        )
     212    screening_score = schema.Int(
     213        title = _(u'Screening Score (%)'),
     214        required = False,
     215        )
     216    aggregate = schema.Int(
     217        title = _(u'Aggregate Score (%)'),
     218        description = _(u'(average of relative JAMB and PUTME scores)'),
     219        required = False,
     220        )
     221    result_uploaded = schema.Bool(
     222        title = _(u'Result uploaded'),
     223        default = False,
     224        required = False,
     225        )
     226    student_id = schema.TextLine(
     227        title = _(u'Student Id'),
     228        required = False,
     229        readonly = False,
     230        )
     231    course_admitted = schema.Choice(
     232        title = _(u'Admitted Course of Study'),
     233        source = CertificateSource(),
     234        required = False,
     235        )
     236    locked = schema.Bool(
     237        title = _(u'Form locked'),
     238        default = False,
     239        required = False,
     240        )
    82241
    83242ICustomUGApplicant[
    84     'sponsor'].order =  ICustomUGApplicant['lga'].order
     243    'locked'].order =  ICustomUGApplicant['suspended'].order
    85244ICustomUGApplicant[
    86     'heard_about'].order =  ICustomUGApplicant['lga'].order
    87 ICustomUGApplicant[
    88     'sponsor'].order =  ICustomUGApplicant['lga'].order
    89 ICustomUGApplicant[
    90     'lga'].order =  ICustomUGApplicant['nationality'].order
     245    'result_uploaded'].order =  ICustomUGApplicant['suspended'].order
    91246
    92247class ICustomPGApplicant(INigeriaPGApplicant):
Note: See TracChangeset for help on using the changeset viewer.