- Timestamp:
- 3 Jul 2014, 08:17:34 (10 years ago)
- Location:
- main/waeup.uniben/trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/CHANGES.txt
r11725 r11728 4 4 1.2dev (unreleased) 5 5 =================== 6 7 * Requirements for adding application payment tickets customized. 8 Applicants must upload passport picture before adding payment tickets. 6 9 7 10 * Set correct institution account details for special_pg_pt payments. -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r10622 r11728 19 19 """ 20 20 import grok 21 from zope.component import getUtility 22 from waeup.kofa.interfaces import IExtFileStore 21 23 from waeup.kofa.applicants.browser import ( 22 ApplicantRegistrationPage, ApplicantsContainerPage) 24 ApplicantRegistrationPage, ApplicantsContainerPage, 25 ApplicationFeePaymentAddPage) 23 26 from kofacustom.nigeria.applicants.browser import ( 24 27 NigeriaApplicantDisplayFormPage, … … 113 116 return 114 117 118 class CustomApplicationFeePaymentAddPage(ApplicationFeePaymentAddPage): 119 """ Page to add an online payment ticket 120 """ 115 121 122 @property 123 def custom_requirements(self): 124 store = getUtility(IExtFileStore) 125 if not store.getFileByContext(self.context, attr=u'passport.jpg'): 126 return _('Upload your passport photo before making payment.') 127 return '' 128 -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r11645 r11728 31 31 EXTERNAL_TESTS = False 32 32 33 SAMPLE_IMAGE = os.path.join(os.path.dirname(__file__), 'test_image.jpg') 34 33 35 def external_test(func): 34 36 if not EXTERNAL_TESTS: … … 405 407 self.browser.open(self.manage_path) 406 408 #IWorkflowState(self.student).setState('started') 409 self.applicantscontainer.application_fee = 1000.0 407 410 super(InterswitchTestsApplicants, self).fill_correct_values() 408 self.applicantscontainer.application_fee = 1000.0 409 self.browser.getControl(name="form.nationality").value = ['NG'] 410 self.browser.getControl(name="transition").value = ['start'] 411 self.browser.getControl("Add online").click() 412 self.assertMatches('...Upload your passport photo before making payment...', 413 self.browser.contents) 414 self.browser.open(self.manage_path) 415 super(InterswitchTestsApplicants, self).fill_correct_values() 416 #self.browser.getControl(name="form.nationality").value = ['NG'] 417 #self.browser.getControl(name="transition").value = ['start'] 418 image = open(SAMPLE_IMAGE, 'rb') 419 ctrl = self.browser.getControl(name='form.passport') 420 file_ctrl = ctrl.mech_control 421 file_ctrl.add_file(image, filename='myphoto.jpg') 411 422 self.browser.getControl("Save").click() 412 423 self.browser.getControl("Add online").click()
Note: See TracChangeset for help on using the changeset viewer.