Changeset 17537 for main/waeup.uniben


Ignore:
Timestamp:
15 Aug 2023, 05:03:16 (15 months ago)
Author:
Henrik Bettermann
Message:

Open many fields on UG and PUTME form.

File:
1 edited

Legend:

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

    r17532 r17537  
    5757from waeup.kofa.applicants.workflow import ADMITTED, PAID, STARTED
    5858from kofacustom.nigeria.applicants.interfaces import (
    59     UG_OMIT_DISPLAY_FIELDS,
    60     UG_OMIT_PDF_FIELDS,
    61     UG_OMIT_MANAGE_FIELDS,
    62     UG_OMIT_EDIT_FIELDS,
     59    OMIT_DISPLAY_FIELDS,
     60#    UG_OMIT_DISPLAY_FIELDS,
     61#    UG_OMIT_PDF_FIELDS,
     62#    UG_OMIT_MANAGE_FIELDS,
     63#    UG_OMIT_EDIT_FIELDS,
    6364    CBT_OMIT_DISPLAY_FIELDS,
    6465    CBT_OMIT_PDF_FIELDS,
     
    7475    PG_OMIT_EDIT_FIELDS,
    7576    PUTME_OMIT_DISPLAY_FIELDS,
    76     PUTME_OMIT_PDF_FIELDS,
    77     PUTME_OMIT_MANAGE_FIELDS,
    78     PUTME_OMIT_EDIT_FIELDS,
    79     PUTME_OMIT_RESULT_SLIP_FIELDS,
     77#    PUTME_OMIT_PDF_FIELDS,
     78#    PUTME_OMIT_MANAGE_FIELDS,
     79#    PUTME_OMIT_EDIT_FIELDS,
     80#    PUTME_OMIT_RESULT_SLIP_FIELDS,
    8081    PUDE_OMIT_DISPLAY_FIELDS,
    8182    PUDE_OMIT_PDF_FIELDS,
     
    107108PASTQ_MSS = ['ACC','BNK','BUS','ECO','ESM','GEO','POL','SAA','SWK',
    108109             'ACT','ENT','HRM','INS','MKT'] + PASTQ_ALL
     110
     111# UG students are all undergraduate students. Meanwhile
     112# Uniben uses a customized version.
     113
     114UG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + (
     115    'jamb_subjects_list', 'programme_type')
     116UG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('phone',)
     117UG_OMIT_MANAGE_FIELDS = (
     118    'special_application',
     119    'jamb_subjects_list',
     120    'programme_type')
     121UG_OMIT_EDIT_FIELDS = UG_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + (
     122    'student_id',
     123    'notice',
     124    'screening_score',
     125    'screening_venue',
     126    'screening_date',
     127    'jamb_age',
     128    'jamb_subjects',
     129    'jamb_score',
     130#    'jamb_reg_number',
     131    'aggregate')
     132
     133# PUTME is a subgroup of UG with the same interface. Meanwhile
     134# Uniben uses a customized version.
     135
     136PUTME_OMIT_FIELDS = (
     137    'hq_type', 'hq_matric_no',
     138    'hq_degree', 'hq_school',
     139    'hq_session', 'hq_disc',
     140    'jamb_subjects_list', 'programme_type')
     141
     142PUTME_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + PUTME_OMIT_FIELDS
     143
     144PUTME_OMIT_MANAGE_FIELDS = UG_OMIT_MANAGE_FIELDS + PUTME_OMIT_FIELDS
     145
     146PUTME_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + PUTME_OMIT_FIELDS
     147
     148PUTME_OMIT_PDF_FIELDS = PUTME_OMIT_DISPLAY_FIELDS + ('phone',)
     149PUTME_OMIT_RESULT_SLIP_FIELDS = PUTME_OMIT_DISPLAY_FIELDS + (
     150    'phone',
     151    'date_of_birth', 'sex',
     152    'nationality', 'lga', #'perm_address',
     153    'course2', 'screening_venue',
     154    'screening_date')
     155
    109156
    110157REGISTRATION_OMIT_DISPLAY_FIELDS = (
Note: See TracChangeset for help on using the changeset viewer.