Changeset 14140


Ignore:
Timestamp:
31 Aug 2016, 05:40:07 (8 years ago)
Author:
Henrik Bettermann
Message:

Start customizing INigeriaUGApplicant.

File:
1 edited

Legend:

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

    r14106 r14140  
    3939from kofacustom.nigeria.applicants.interfaces import (
    4040    LGASource, high_qual, high_grade, exam_types,
     41    programme_types_vocab, jambsubjects,
    4142    INigeriaUGApplicant, INigeriaPGApplicant,
    4243    INigeriaApplicantOnlinePayment,
     
    4445    INigeriaApplicantUpdateByRegNo,
    4546    IPUTMEApplicantEdit,
     47    IBankAccount,
    4648    )
    4749from waeup.uniben.interfaces import MessageFactory as _
     
    180182#                raise Invalid(_("Matriculation number not found."))
    181183
    182 class ICustomUGApplicant(INigeriaUGApplicant):
     184class ICustomUGApplicant(IApplicantBaseData, IBankAccount):
    183185    """An undergraduate applicant.
    184186
     
    187189    adding them to the UG_OMIT* tuples.
    188190    """
     191
     192    nationality = schema.Choice(
     193        source = nats_vocab,
     194        title = _(u'Nationality'),
     195        required = False,
     196        )
     197    lga = schema.Choice(
     198        source = LGASource(),
     199        title = _(u'State/LGA (Nigerians only)'),
     200        required = False,
     201        )
     202    #perm_address = schema.Text(
     203    #    title = _(u'Permanent Address'),
     204    #    required = False,
     205    #    )
     206    course1 = schema.Choice(
     207        title = _(u'1st Choice Course of Study'),
     208        source = AppCatCertificateSource(),
     209        required = True,
     210        )
     211    course2 = schema.Choice(
     212        title = _(u'2nd Choice Course of Study'),
     213        source = AppCatCertificateSource(),
     214        required = False,
     215        )
     216
     217    programme_type = schema.Choice(
     218        title = _(u'Programme Type'),
     219        vocabulary = programme_types_vocab,
     220        required = False,
     221        )
     222
     223    hq_type = schema.Choice(
     224        title = _(u'Qualification Obtained'),
     225        required = False,
     226        readonly = False,
     227        vocabulary = high_qual,
     228        )
     229    hq_matric_no = schema.TextLine(
     230        title = _(u'Former Matric Number'),
     231        required = False,
     232        readonly = False,
     233        )
     234    hq_degree = schema.Choice(
     235        title = _(u'Class of Degree'),
     236        required = False,
     237        readonly = False,
     238        vocabulary = high_grade,
     239        )
     240    hq_school = schema.TextLine(
     241        title = _(u'Institution Attended'),
     242        required = False,
     243        readonly = False,
     244        )
     245    hq_session = schema.TextLine(
     246        title = _(u'Years Attended'),
     247        required = False,
     248        readonly = False,
     249        )
     250    hq_disc = schema.TextLine(
     251        title = _(u'Discipline'),
     252        required = False,
     253        readonly = False,
     254        )
     255    jamb_subjects = schema.Text(
     256        title = _(u'Subjects and Scores'),
     257        required = False,
     258        )
     259    jamb_subjects_list = schema.List(
     260        title = _(u'JAMB Subjects'),
     261        required = False,
     262        defaultFactory=list,
     263        value_type = schema.Choice(
     264            vocabulary = jambsubjects
     265            #source = JAMBSubjectSource(),
     266            ),
     267        )
     268    jamb_score = schema.Int(
     269        title = _(u'Total JAMB Score'),
     270        required = False,
     271        )
     272    #jamb_age = schema.Int(
     273    #    title = _(u'Age (provided by JAMB)'),
     274    #    required = False,
     275    #    )
     276    jamb_reg_number = schema.TextLine(
     277        title = _(u'JAMB Registration Number'),
     278        required = False,
     279        )
     280    notice = schema.Text(
     281        title = _(u'Notice'),
     282        required = False,
     283        )
     284    screening_venue = schema.TextLine(
     285        title = _(u'Screening Venue'),
     286        required = False,
     287        )
     288    screening_date = schema.TextLine(
     289        title = _(u'Screening Date'),
     290        required = False,
     291        )
     292    screening_score = schema.Int(
     293        title = _(u'Screening Score (%)'),
     294        required = False,
     295        )
     296    aggregate = schema.Int(
     297        title = _(u'Aggregate Score (%)'),
     298        description = _(u'(average of relative JAMB and PUTME scores)'),
     299        required = False,
     300        )
     301    result_uploaded = schema.Bool(
     302        title = _(u'Result uploaded'),
     303        default = False,
     304        required = False,
     305        )
     306    student_id = schema.TextLine(
     307        title = _(u'Student Id'),
     308        required = False,
     309        readonly = False,
     310        )
     311    course_admitted = schema.Choice(
     312        title = _(u'Admitted Course of Study'),
     313        source = CertificateSource(),
     314        required = False,
     315        )
     316    locked = schema.Bool(
     317        title = _(u'Form locked'),
     318        default = False,
     319        required = False,
     320        )
     321
     322ICustomUGApplicant[
     323    'locked'].order =  IApplicantBaseData['suspended'].order
     324ICustomUGApplicant[
     325    'result_uploaded'].order =  ICustomUGApplicant['suspended'].order
    189326
    190327class ICustomPGApplicant(INigeriaPGApplicant):
Note: See TracChangeset for help on using the changeset viewer.