Changeset 14829


Ignore:
Timestamp:
31 Aug 2017, 07:26:25 (7 years ago)
Author:
Henrik Bettermann
Message:

Add more fields to ICustomUGApplicant.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
3 edited

Legend:

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

    r14304 r14829  
    3838        ('alr_date', 'alr_date'),
    3939        ('alr_results', 'alr_results'),
     40        ('fst_sit_sc_pin', 'fst_sit_sc_pin'),
     41        ('fst_sit_sc_serial_number', 'fst_sit_sc_serial_number'),
     42        ('scd_sit_sc_pin', 'scd_sit_sc_pin'),
     43        ('scd_sit_sc_serial_number', 'scd_sit_sc_serial_number'),
    4044        #('', ''),
    4145        ]
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py

    r14666 r14829  
    7171        required = True,
    7272        )
     73
    7374    lga = schema.Choice(
    7475        source = LGASource(),
     
    7677        required = False,
    7778        )
     79
    7880    perm_address = schema.Text(
    7981        title = _(u'Permanent Address'),
    8082        required = False,
    8183        )
     84
    8285    home_town = schema.TextLine(
    8386        title = _(u'Home Town'),
    8487        required = False,
    8588        )
     89
    8690    #jamb_reg_number = schema.TextLine(
    8791    #    title = _(u'JAMB Registration Number'),
    8892    #    required = False,
    8993    #    )
     94
    9095    jamb_score = schema.Int(
    9196        title = _(u'Total JAMB Score'),
    9297        required = False,
    9398        )
     99
    94100    jamb_subjects = schema.Text(
    95101        title = _(u'JAMB Subjects and Scores'),
    96102        required = False,
    97103        )
     104
    98105    course1 = schema.Choice(
    99106        title = _(u'1st Choice Course of Study'),
     
    101108        required = False,
    102109        )
     110
    103111    course2 = schema.Choice(
    104112        title = _(u'2nd Choice Course of Study'),
     
    106114        required = False,
    107115        )
     116
    108117    fst_sit_fname = schema.TextLine(
    109118        title = _(u'Full Name'),
     
    111120        readonly = False,
    112121        )
     122
    113123    fst_sit_no = schema.TextLine(
    114124        title = _(u'Exam Number'),
     
    116126        readonly = False,
    117127        )
     128
     129    fst_sit_sc_pin = schema.TextLine(
     130        title = _(u'Scratch Card Pin'),
     131        required = False,
     132        readonly = False,
     133        )
     134
     135    fst_sit_sc_serial_number = schema.TextLine(
     136        title = _(u'Scratch Card Serial Number'),
     137        required = False,
     138        readonly = False,
     139        )
     140
    118141    fst_sit_date = FormattedDate(
    119142        title = _(u'Exam Date'),
     
    122145        show_year = True,
    123146        )
     147
    124148    fst_sit_type = schema.Choice(
    125149        title = _(u'Exam Type'),
     
    128152        vocabulary = exam_types,
    129153        )
     154
    130155    fst_sit_results = schema.List(
    131156        title = _(u'Exam Results'),
     
    135160        defaultFactory=list,
    136161        )
     162
    137163    scd_sit_fname = schema.TextLine(
    138164        title = _(u'Full Name'),
     
    140166        readonly = False,
    141167        )
     168
    142169    scd_sit_no = schema.TextLine(
    143170        title = _(u'Exam Number'),
     
    145172        readonly = False,
    146173        )
     174
     175    scd_sit_sc_pin = schema.TextLine(
     176        title = _(u'Scratch Card Pin'),
     177        required = False,
     178        readonly = False,
     179        )
     180
     181    scd_sit_sc_serial_number = schema.TextLine(
     182        title = _(u'Scratch Card Serial Number'),
     183        required = False,
     184        readonly = False,
     185        )
     186
    147187    scd_sit_date = FormattedDate(
    148188        title = _(u'Exam Date'),
     
    151191        show_year = True,
    152192        )
     193
    153194    scd_sit_type = schema.Choice(
    154195        title = _(u'Exam Type'),
     
    157198        vocabulary = exam_types,
    158199        )
     200
    159201    scd_sit_results = schema.List(
    160202        title = _(u'Exam Results'),
     
    164206        defaultFactory=list,
    165207        )
     208
    166209    alr_fname = schema.TextLine(
    167210        title = _(u'Full Name'),
     
    169212        readonly = False,
    170213        )
     214
    171215    alr_no = schema.TextLine(
    172216        title = _(u'Exam Number'),
     
    174218        readonly = False,
    175219        )
     220
    176221    alr_date = FormattedDate(
    177222        title = _(u'Exam Date'),
     
    180225        show_year = True,
    181226        )
     227
    182228    alr_results = schema.List(
    183229        title = _(u'Exam Results'),
     
    187233        defaultFactory=list,
    188234        )
     235
    189236    hq_type = schema.Choice(
    190237        title = _(u'Qualification Obtained'),
     
    787834        )
    788835
     836    fst_sit_fname = schema.TextLine(
     837        title = _(u'Full Name'),
     838        required = True,
     839        readonly = False,
     840        )
     841
     842    fst_sit_no = schema.TextLine(
     843        title = _(u'Exam Number'),
     844        required = True,
     845        readonly = False,
     846        )
     847
     848    fst_sit_sc_pin = schema.TextLine(
     849        title = _(u'Scratch Card Pin'),
     850        required = True,
     851        readonly = False,
     852        )
     853
     854    fst_sit_sc_serial_number = schema.TextLine(
     855        title = _(u'Scratch Card Serial Number'),
     856        required = True,
     857        readonly = False,
     858        )
     859
     860    fst_sit_date = FormattedDate(
     861        title = _(u'Exam Date'),
     862        required = True,
     863        readonly = False,
     864        show_year = True,
     865        )
     866
     867    fst_sit_type = schema.Choice(
     868        title = _(u'Exam Type'),
     869        required = True,
     870        readonly = False,
     871        vocabulary = exam_types,
     872        )
     873
    789874#ICustomUGApplicantEdit['programme_type'].order = ICustomUGApplicant[
    790875#    'programme_type'].order
    791876ICustomUGApplicantEdit['date_of_birth'].order = ICustomUGApplicant[
    792877    'date_of_birth'].order
     878ICustomUGApplicantEdit['fst_sit_fname'].order = ICustomUGApplicant[
     879    'fst_sit_fname'].order
     880ICustomUGApplicantEdit['fst_sit_no'].order = ICustomUGApplicant[
     881    'fst_sit_no'].order
     882ICustomUGApplicantEdit['fst_sit_sc_pin'].order = ICustomUGApplicant[
     883    'fst_sit_sc_pin'].order
     884ICustomUGApplicantEdit['fst_sit_sc_serial_number'].order = ICustomUGApplicant[
     885    'fst_sit_sc_serial_number'].order
     886ICustomUGApplicantEdit['fst_sit_date'].order = ICustomUGApplicant[
     887    'fst_sit_date'].order
     888ICustomUGApplicantEdit['fst_sit_type'].order = ICustomUGApplicant[
     889    'fst_sit_type'].order
    793890
    794891class ICustomPGApplicantEdit(INigeriaPGApplicantEdit):
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py

    r14824 r14829  
    6666        self.browser.getControl(name="form.sex").value = ['m']
    6767        self.browser.getControl(name="form.lastname").value = 'Merkel'
     68        self.browser.getControl(name="form.fst_sit_fname").value = 'name'
     69        self.browser.getControl(name="form.fst_sit_no").value = 'no'
     70        self.browser.getControl(name="form.fst_sit_sc_pin").value = 'pin'
     71        self.browser.getControl(name="form.fst_sit_sc_serial_number").value = 'serial'
     72        self.browser.getControl(name="form.fst_sit_date").value = '09/09/2000'
     73        self.browser.getControl(name="form.fst_sit_type").value = ['ssce']
    6874        self.browser.getControl("Save").click()
    6975        self.browser.getControl("Add online payment ticket").click()
Note: See TracChangeset for help on using the changeset viewer.