Ignore:
Timestamp:
30 Sep 2016, 11:04:24 (8 years ago)
Author:
Henrik Bettermann
Message:

Distinguish ude from other ug applicants.

File:
1 edited

Legend:

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

    r14150 r14209  
    9595    )
    9696
     97UDE_OMIT_FIELDS = (
     98      'nysc_year',
     99      'nysc_location',
     100      'nysc_lga',
     101      'employer',
     102      'emp_position',
     103      'emp_start',
     104      'emp_end',
     105      'emp_reason',
     106      'employer2',
     107      'emp2_position',
     108      'emp2_start',
     109      'emp2_end',
     110      'emp2_reason',
     111      'former_matric',
     112      )
     113UDE_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + (
     114    'jamb_subjects_list', 'master_sheet_number') + UDE_OMIT_FIELDS
     115UDE_OMIT_PDF_FIELDS = UDE_OMIT_DISPLAY_FIELDS + UDE_OMIT_FIELDS + (
     116      'reg_number','alr_fname', 'alr_no', 'alr_date',
     117      'alr_results', 'notice')
     118UDE_OMIT_MANAGE_FIELDS = (
     119    'special_application','jamb_subjects_list',) + UDE_OMIT_FIELDS
     120UDE_OMIT_EDIT_FIELDS = UDE_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + (
     121    'student_id',
     122    'notice',
     123    'jamb_age',
     124    'jamb_subjects',
     125    'jamb_score',
     126    'jamb_reg_number',
     127    'aggregate',
     128    'master_sheet_number',
     129    'screening_venue',
     130    'screening_score',
     131    'screening_date'
     132    )
     133
    97134#UG_OMIT_PDF_FIELDS = tuple([
    98135#    element for element in UG_OMIT_PDF_FIELDS if not element == 'phone'])
     
    201238            for field in PTEE_OMIT_DISPLAY_FIELDS:
    202239                form_fields = form_fields.omit(field)
     240        elif self.target is not None and self.target in ('ude',):
     241            for field in UDE_OMIT_DISPLAY_FIELDS:
     242                form_fields = form_fields.omit(field)
    203243        else:
    204244            for field in UG_OMIT_DISPLAY_FIELDS:
     
    263303            for field in PTEE_OMIT_PDF_FIELDS:
    264304                form_fields = form_fields.omit(field)
     305        elif self.target is not None and self.target in ('ude',):
     306            for field in UDE_OMIT_PDF_FIELDS:
     307                form_fields = form_fields.omit(field)
    265308        else:
    266309            for field in UG_OMIT_PDF_FIELDS:
     
    293336        elif self.target is not None and self.target in ('ptee',):
    294337            for field in PTEE_OMIT_MANAGE_FIELDS:
     338                form_fields = form_fields.omit(field)
     339        elif self.target is not None and self.target in ('ude',):
     340            for field in UDE_OMIT_MANAGE_FIELDS:
    295341                form_fields = form_fields.omit(field)
    296342        else:
     
    344390        elif self.target is not None and self.target in ('ptee',):
    345391            for field in PTEE_OMIT_EDIT_FIELDS:
     392                form_fields = form_fields.omit(field)
     393        elif self.target is not None and self.target in ('ude',):
     394            for field in UDE_OMIT_EDIT_FIELDS:
    346395                form_fields = form_fields.omit(field)
    347396        else:
Note: See TracChangeset for help on using the changeset viewer.