Changeset 14210 for main


Ignore:
Timestamp:
1 Oct 2016, 05:02:10 (8 years ago)
Author:
Henrik Bettermann
Message:

Customize UG_OMIT lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/applicants/browser.py

    r14128 r14210  
    2727    NigeriaApplicantEditFormPage,
    2828    NigeriaPDFApplicationSlip)
    29 from kofacustom.nigeria.applicants.interfaces import (
    30     UG_OMIT_DISPLAY_FIELDS,
    31     UG_OMIT_PDF_FIELDS,
    32     UG_OMIT_MANAGE_FIELDS,
    33     UG_OMIT_EDIT_FIELDS,
    34     )
     29
    3530from kofacustom.coewarri.applicants.interfaces import (
    3631    ICustomUGApplicantEdit, ICustomUGApplicant)
    3732from kofacustom.coewarri.interfaces import MessageFactory as _
     33
     34# Fields to be omitted in all display forms. course_admitted is
     35# rendered separately.
     36
     37OMIT_DISPLAY_FIELDS = ('locked', 'course_admitted',
     38    'result_uploaded', 'suspended', 'special_application',
     39    'bank_account_number',
     40    'bank_account_name',
     41    'bank_name')
     42
     43# UG students are all undergraduate students.
     44UG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + (
     45    'jamb_subjects_list', 'programme_type')
     46UG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('phone',)
     47UG_OMIT_MANAGE_FIELDS = (
     48    'special_application',
     49    'jamb_subjects_list',
     50    'programme_type')
     51UG_OMIT_EDIT_FIELDS = UG_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + (
     52    'student_id',
     53    'notice',
     54    'screening_score',
     55    'screening_venue',
     56    'screening_date',
     57#    'jamb_age',
     58#    'jamb_subjects',
     59#    'jamb_score',
     60#    'jamb_reg_number',
     61    'aggregate')
    3862
    3963class CustomApplicantDisplayFormPage(NigeriaApplicantDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.