Changeset 14150 for main/waeup.aaue/trunk
- Timestamp:
- 2 Sep 2016, 09:03:03 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r14057 r14150 89 89 'jamb_reg_number', 90 90 'aggregate', 91 92 'firstname',93 'middlename',94 'lastname',95 'sex',96 'lga',97 'course1',98 91 'master_sheet_number', 99 92 'screening_venue', … … 179 172 ) 180 173 174 UPDATE_OMIT_FIELDS = ( 175 'firstname', 176 'middlename', 177 'lastname', 178 'sex', 179 'lga', 180 'course1', 181 ) 182 181 183 class CustomApplicantDisplayFormPage(NigeriaApplicantDisplayFormPage): 182 184 """A display view for applicant data. … … 196 198 for field in PG_OMIT_DISPLAY_FIELDS: 197 199 form_fields = form_fields.omit(field) 198 elif self.target is not None and self.target in ('ptee', 'ude'):200 elif self.target is not None and self.target in ('ptee',): 199 201 for field in PTEE_OMIT_DISPLAY_FIELDS: 200 202 form_fields = form_fields.omit(field) … … 258 260 for field in PG_OMIT_PDF_FIELDS: 259 261 form_fields = form_fields.omit(field) 260 elif self.target is not None and self.target in ('ptee', 'ude'):262 elif self.target is not None and self.target in ('ptee',): 261 263 for field in PTEE_OMIT_PDF_FIELDS: 262 264 form_fields = form_fields.omit(field) … … 289 291 for field in PG_OMIT_MANAGE_FIELDS: 290 292 form_fields = form_fields.omit(field) 291 elif self.target is not None and self.target in ('ptee', 'ude'):293 elif self.target is not None and self.target in ('ptee',): 292 294 for field in PTEE_OMIT_MANAGE_FIELDS: 293 295 form_fields = form_fields.omit(field) … … 340 342 for field in PG_OMIT_EDIT_FIELDS: 341 343 form_fields = form_fields.omit(field) 342 elif self.target is not None and self.target in ('ptee', 'ude'):344 elif self.target is not None and self.target in ('ptee',): 343 345 for field in PTEE_OMIT_EDIT_FIELDS: 344 346 form_fields = form_fields.omit(field) … … 346 348 for field in UG_OMIT_EDIT_FIELDS: 347 349 form_fields = form_fields.omit(field) 350 # Additional omissions 351 if self.target is not None and self.target in ('ude', 'utme'): 352 for field in UPDATE_OMIT_FIELDS: 353 form_fields[field].for_display = True 348 354 form_fields['applicant_id'].for_display = True 349 355 form_fields['reg_number'].for_display = True -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py
r14027 r14150 62 62 #self.browser.getControl(name="form.programme_type").value = ['regular'] 63 63 self.browser.getControl(name="form.nationality").value = ['NG'] 64 self.browser.getControl(name="form.sex").value = ['m'] 65 self.browser.getControl(name="form.lastname").value = 'Merkel' 64 66 self.browser.getControl("Save").click() 65 67 self.browser.getControl("Add online payment ticket").click()
Note: See TracChangeset for help on using the changeset viewer.