Ignore:
Timestamp:
26 Apr 2015, 12:50:43 (9 years ago)
Author:
Henrik Bettermann
Message:

Customize PUTME and PUDE forms.

File:
1 edited

Legend:

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

    r12885 r12887  
    3131
    3232from kofacustom.nigeria.applicants.interfaces import (
    33     UG_OMIT_DISPLAY_FIELDS,
    34     UG_OMIT_PDF_FIELDS,
    35     UG_OMIT_MANAGE_FIELDS,
    36     UG_OMIT_EDIT_FIELDS,
    37     PUTME_OMIT_DISPLAY_FIELDS,
    38     PUTME_OMIT_PDF_FIELDS,
    39     PUTME_OMIT_MANAGE_FIELDS,
    40     PUTME_OMIT_EDIT_FIELDS,
    41     PUTME_OMIT_RESULT_SLIP_FIELDS,
    42     PUDE_OMIT_DISPLAY_FIELDS,
    43     PUDE_OMIT_PDF_FIELDS,
    44     PUDE_OMIT_MANAGE_FIELDS,
    45     PUDE_OMIT_EDIT_FIELDS,
    46     PUDE_OMIT_RESULT_SLIP_FIELDS,
     33    OMIT_DISPLAY_FIELDS,
     34    #UG_OMIT_DISPLAY_FIELDS,
     35    #UG_OMIT_PDF_FIELDS,
     36    #UG_OMIT_MANAGE_FIELDS,
     37    #UG_OMIT_EDIT_FIELDS,
     38    #PUTME_OMIT_DISPLAY_FIELDS,
     39    #PUTME_OMIT_PDF_FIELDS,
     40    #PUTME_OMIT_MANAGE_FIELDS,
     41    #PUTME_OMIT_EDIT_FIELDS,
     42    #PUTME_OMIT_RESULT_SLIP_FIELDS,
     43    #PUDE_OMIT_DISPLAY_FIELDS,
     44    #PUDE_OMIT_PDF_FIELDS,
     45    #PUDE_OMIT_MANAGE_FIELDS,
     46    #PUDE_OMIT_EDIT_FIELDS,
     47    #PUDE_OMIT_RESULT_SLIP_FIELDS,
    4748    )
    4849
     
    5455
    5556from kofacustom.wdu.interfaces import MessageFactory as _
     57
     58
     59# UG students are all undergraduate students.
     60UG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS
     61UG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('phone',)
     62UG_OMIT_MANAGE_FIELDS = ('special_application',)
     63UG_OMIT_EDIT_FIELDS = UG_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + (
     64    'student_id', 'notice',
     65    'screening_score',
     66    'screening_venue',
     67    'screening_date',
     68    #'jamb_age',
     69    #'jamb_subjects',
     70    #'jamb_score',
     71    'aggregate')
     72
     73# PUTME is a subgroup of UG with the same interface.
     74PUTME_OMIT_FIELDS = (
     75    'hq_type',
     76    'hq_matric_no',
     77    'hq_degree',
     78    'hq_school',
     79    'hq_session',
     80    'hq_disc',
     81    )
     82PUTME_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + PUTME_OMIT_FIELDS
     83PUTME_OMIT_MANAGE_FIELDS = UG_OMIT_MANAGE_FIELDS + PUTME_OMIT_FIELDS
     84PUTME_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + PUTME_OMIT_FIELDS + (
     85    #'firstname',
     86    #'middlename',
     87    #'lastname',
     88    #'sex',
     89    #'course1',
     90    #'lga'
     91    )
     92PUTME_OMIT_PDF_FIELDS = PUTME_OMIT_DISPLAY_FIELDS + ('phone',)
     93PUTME_OMIT_RESULT_SLIP_FIELDS = PUTME_OMIT_DISPLAY_FIELDS + (
     94    'phone',
     95    'date_of_birth', 'sex',
     96    'nationality', 'lga', #'perm_address',
     97    'course2', 'screening_venue',
     98    'screening_date')
     99
     100# PUDE is a subgroup of UG with the same interface.
     101PUDE_OMIT_FIELDS = (
     102    'jamb_subjects',
     103    'jamb_score',
     104    'jamb_age',
     105    'aggregate')
     106PUDE_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + PUDE_OMIT_FIELDS
     107PUDE_OMIT_MANAGE_FIELDS = UG_OMIT_MANAGE_FIELDS + PUDE_OMIT_FIELDS
     108PUDE_OMIT_EDIT_FIELDS = set(UG_OMIT_EDIT_FIELDS + PUDE_OMIT_FIELDS + (
     109    #'firstname',
     110    #'middlename',
     111    #'lastname',
     112    #'sex',
     113    #'course1',
     114    #'lga'
     115    ))
     116PUDE_OMIT_PDF_FIELDS = PUDE_OMIT_DISPLAY_FIELDS + ('phone',)
     117PUDE_OMIT_RESULT_SLIP_FIELDS = PUDE_OMIT_DISPLAY_FIELDS + (
     118    'phone',
     119    'date_of_birth', 'sex',
     120    'nationality', 'lga', #'perm_address',
     121    'course2', 'screening_venue',
     122    'screening_date')
    56123
    57124
Note: See TracChangeset for help on using the changeset viewer.