Changeset 10204 for main


Ignore:
Timestamp:
22 May 2013, 19:06:12 (12 years ago)
Author:
Henrik Bettermann
Message:

Start customization of ICustomUGApplicant.

File:
1 edited

Legend:

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

    r10096 r10204  
    2626from kofacustom.nigeria.applicants.interfaces import (
    2727    LGASource,
     28    high_qual, high_grade, exam_types,
    2829    INigeriaUGApplicant,
    2930    INigeriaApplicantOnlinePayment,
     
    3637    UG_OMIT_MANAGE_FIELDS,
    3738    UG_OMIT_EDIT_FIELDS,
     39    PUTME_OMIT_EDIT_FIELDS,
     40    PUTME_OMIT_DISPLAY_FIELDS,
     41    PUTME_OMIT_PDF_FIELDS,
     42    PUTME_OMIT_MANAGE_FIELDS,
     43    PUTME_OMIT_EDIT_FIELDS,
    3844    )
    39 
    4045
    4146PG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + ('course2',)
     
    4954from waeup.futminna.interfaces import MessageFactory as _
    5055
    51 class ICustomUGApplicant(INigeriaUGApplicant):
     56class ICustomUGApplicant(IApplicantBaseData):
    5257    """An undergraduate applicant.
    5358
     
    5661    adding them to the UG_OMIT* tuples.
    5762    """
     63
     64    nationality = schema.Choice(
     65        source = nats_vocab,
     66        title = _(u'Nationality'),
     67        required = True,
     68        )
     69    lga = schema.Choice(
     70        source = LGASource(),
     71        title = _(u'State/LGA (Nigerians only)'),
     72        required = False,
     73        )
     74    perm_address = schema.Text(
     75        title = _(u'Permanent Address'),
     76        required = False,
     77        )
     78    course1 = schema.Choice(
     79        title = _(u'1st Choice Course of Study'),
     80        source = AppCatCertificateSource(),
     81        required = True,
     82        )
     83    course2 = schema.Choice(
     84        title = _(u'2nd Choice Course of Study'),
     85        description = _(u'Comment which explains why applicant must select a 2nd Choice Course of Study.'),
     86        source = AppCatCertificateSource(),
     87        required = True,
     88        )
     89    hq_type = schema.Choice(
     90        title = _(u'Qualification Obtained'),
     91        required = False,
     92        readonly = False,
     93        vocabulary = high_qual,
     94        )
     95    hq_matric_no = schema.TextLine(
     96        title = _(u'Former Matric Number'),
     97        required = False,
     98        readonly = False,
     99        )
     100    hq_degree = schema.Choice(
     101        title = _(u'Class of Degree'),
     102        required = False,
     103        readonly = False,
     104        vocabulary = high_grade,
     105        )
     106    hq_school = schema.TextLine(
     107        title = _(u'Institution Attended'),
     108        required = False,
     109        readonly = False,
     110        )
     111    hq_session = schema.TextLine(
     112        title = _(u'Years Attended'),
     113        required = False,
     114        readonly = False,
     115        )
     116    hq_disc = schema.TextLine(
     117        title = _(u'Discipline'),
     118        required = False,
     119        readonly = False,
     120        )
     121    jamb_subjects = schema.Text(
     122        title = _(u'Subjects and Scores'),
     123        required = False,
     124        )
     125    jamb_score = schema.Int(
     126        title = _(u'Total JAMB Score'),
     127        required = False,
     128        )
     129    notice = schema.Text(
     130        title = _(u'Notice'),
     131        required = False,
     132        )
     133    screening_venue = schema.TextLine(
     134        title = _(u'Screening Venue'),
     135        required = False,
     136        )
     137    screening_date = schema.TextLine(
     138        title = _(u'Screening Date'),
     139        required = False,
     140        )
     141    screening_score = schema.Int(
     142        title = _(u'Screening Score (%)'),
     143        required = False,
     144        )
     145    aggregate = schema.Int(
     146        title = _(u'Aggregate Score (%)'),
     147        description = _(u'(average of relative JAMB and PUTME scores)'),
     148        required = False,
     149        )
     150    result_uploaded = schema.Bool(
     151        title = _(u'Result uploaded'),
     152        default = False,
     153        )
     154    student_id = schema.TextLine(
     155        title = _(u'Student Id'),
     156        required = False,
     157        readonly = False,
     158        )
     159    course_admitted = schema.Choice(
     160        title = _(u'Admitted Course of Study'),
     161        source = CertificateSource(),
     162        required = False,
     163        )
     164    locked = schema.Bool(
     165        title = _(u'Form locked'),
     166        default = False,
     167        )
     168
    58169
    59170class ICustomPGApplicant(IApplicantBaseData):
Note: See TracChangeset for help on using the changeset viewer.