Ignore:
Timestamp:
24 Sep 2015, 07:35:23 (9 years ago)
Author:
Henrik Bettermann
Message:

Define and use PRE_OMIT_FIELDS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py

    r13163 r13277  
    2121from zope import schema
    2222from zope.component import getUtility
     23from zope.schema import getFields
    2324from waeup.kofa.applicants.interfaces import (
    2425    contextual_reg_num_source,
     
    543544    'locked'].order =  IApplicantBaseData['suspended'].order
    544545
     546# PRE is used by Uniben
     547#  med: "it is as named... PRE - DEGREE... much like a 1 year diploma programme"
     548PRE_OMIT_FIELDS = tuple([
     549    i for i in getFields(INigeriaPGApplicant).keys()
     550        if i[:3] in ('hq_', 'emp', 'nys')])
     551PRE_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + PRE_OMIT_FIELDS
     552PRE_OMIT_MANAGE_FIELDS = PG_OMIT_MANAGE_FIELDS + PRE_OMIT_FIELDS
     553PRE_OMIT_EDIT_FIELDS = set(PG_OMIT_EDIT_FIELDS + PRE_OMIT_FIELDS)
     554PRE_OMIT_PDF_FIELDS = PRE_OMIT_DISPLAY_FIELDS
     555PRE_OMIT_RESULT_SLIP_FIELDS = PRE_OMIT_DISPLAY_FIELDS
     556
    545557class INigeriaApplicant(INigeriaUGApplicant, INigeriaPGApplicant):
    546558    """An interface for both types of applicants.
Note: See TracChangeset for help on using the changeset viewer.