Changeset 16447 for main/waeup.uniben/trunk/src
- Timestamp:
- 7 Apr 2021, 08:48:15 (4 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r16440 r16447 153 153 if not store.getFileByContext(self.context, attr=u'secr_cults.jpg'): 154 154 return _('No affidavit of non-membership of secret cults uploaded.') 155 if not store.getFileByContext(self.context, attr=u'olevel_sc.jpg'): 156 return _('No O level results scratch card uploaded.') 155 157 return False 156 158 157 def update(self):158 self.flash(CLEARANCE_FLASH_MESSAGE, type="warning")159 return super(CustomStudentClearanceEditFormPage, self).update()159 #def update(self): 160 # self.flash(CLEARANCE_FLASH_MESSAGE, type="warning") 161 # return super(CustomStudentClearanceEditFormPage, self).update() 160 162 161 163 class CustomOnlinePaymentAddFormPage(NigeriaOnlinePaymentAddFormPage): -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r16386 r16447 193 193 self.browser.getControl("Save and request clearance").click() 194 194 195 #self.assertTrue('No second sitting result uploaded'196 # in self.browser.contents)197 #scd_sit_scan = 'My second sitting result'198 #file_id = IFileStoreNameChooser(self.student).chooseName(199 # attr="scd_sit_scan.jpg")200 #file_store.createFile(file_id, StringIO(scd_sit_scan))201 #self.browser.open(self.edit_clearance_path)202 #self.browser.getControl("Save and request clearance").click()203 204 195 self.assertTrue('No affidavit of non-membership of secret cults uploaded' 205 196 in self.browser.contents) … … 208 199 attr="secr_cults.jpg") 209 200 file_store.createFile(file_id, StringIO(secr_cults)) 201 self.browser.open(self.edit_clearance_path) 202 self.browser.getControl("Save and request clearance").click() 203 204 self.assertTrue('No O level results scratch card uploaded' 205 in self.browser.contents) 206 olevel_sc = 'My O level results scratch card' 207 file_id = IFileStoreNameChooser(self.student).chooseName( 208 attr="olevel_sc.jpg") 209 file_store.createFile(file_id, StringIO(olevel_sc)) 210 210 211 # Clearance invitation letter is not yet available 211 212 self.browser.open(self.clearance_path)
Note: See TracChangeset for help on using the changeset viewer.