- Timestamp:
- 30 Sep 2016, 11:04:24 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r14150 r14209 95 95 ) 96 96 97 UDE_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 ) 113 UDE_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + ( 114 'jamb_subjects_list', 'master_sheet_number') + UDE_OMIT_FIELDS 115 UDE_OMIT_PDF_FIELDS = UDE_OMIT_DISPLAY_FIELDS + UDE_OMIT_FIELDS + ( 116 'reg_number','alr_fname', 'alr_no', 'alr_date', 117 'alr_results', 'notice') 118 UDE_OMIT_MANAGE_FIELDS = ( 119 'special_application','jamb_subjects_list',) + UDE_OMIT_FIELDS 120 UDE_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 97 134 #UG_OMIT_PDF_FIELDS = tuple([ 98 135 # element for element in UG_OMIT_PDF_FIELDS if not element == 'phone']) … … 201 238 for field in PTEE_OMIT_DISPLAY_FIELDS: 202 239 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) 203 243 else: 204 244 for field in UG_OMIT_DISPLAY_FIELDS: … … 263 303 for field in PTEE_OMIT_PDF_FIELDS: 264 304 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) 265 308 else: 266 309 for field in UG_OMIT_PDF_FIELDS: … … 293 336 elif self.target is not None and self.target in ('ptee',): 294 337 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: 295 341 form_fields = form_fields.omit(field) 296 342 else: … … 344 390 elif self.target is not None and self.target in ('ptee',): 345 391 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: 346 395 form_fields = form_fields.omit(field) 347 396 else:
Note: See TracChangeset for help on using the changeset viewer.