Changeset 15455 for main/waeup.aaue/trunk
- Timestamp:
- 15 Jun 2019, 12:30:51 (6 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py
r15275 r15455 123 123 ) 124 124 125 course3 = schema.Choice( 126 title = _(u'3rd Choice Course of Study'), 127 source = AppCatCertificateSource(), 128 required = False, 129 ) 130 125 131 fst_sit_fname = schema.TextLine( 126 132 title = _(u'Full Name'), … … 506 512 507 513 @invariant 508 def second_choice(applicant):514 def course_choice(applicant): 509 515 if applicant.course1 == applicant.course2: 510 516 raise Invalid(_("2nd choice course must differ from 1st choice course.")) 517 if applicant.course1 == applicant.course3: 518 raise Invalid(_("3rd choice course must differ from 1st choice course.")) 519 if applicant.course2 == applicant.course3: 520 raise Invalid(_("3rd choice course must differ from 2nd choice course.")) 511 521 512 522 #ICustomUGApplicant['programme_type'].order = IApplicantBaseData[ -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_applicantcopier.py
r14250 r15455 24 24 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 25 25 from zope.event import notify 26 from zope.component import getUtility 26 from zope.component import getUtility, createObject 27 27 from zope.i18n import translate 28 28 from waeup.kofa.interfaces import IExtFileStore, IFileStoreNameChooser … … 38 38 def setUp(self): 39 39 super(ApplicantCopierFunctionalTests, self).setUp() 40 certificate = createObject('waeup.Certificate') 41 certificate.code = 'CERT2' 42 certificate.title = 'New Certificate' 43 certificate.application_category = 'basic' 44 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 45 certificate) 40 46 return 41 47 … … 46 52 self.fill_correct_values() 47 53 self.browser.getControl("Save").click() 54 self.browser.getControl(name="form.course2").value = ['CERT2'] 48 55 self.browser.getControl(name="form.nationality").value = ['NG'] 49 56 self.browser.getControl(name="form.lga").value = ['abia_aba_north'] -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py
r15266 r15455 56 56 57 57 def test_payment(self): 58 certificate = createObject('waeup.Certificate') 59 certificate.code = 'CERT2' 60 certificate.title = 'New Certificate' 61 certificate.application_category = 'basic' 62 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 63 certificate) 58 64 configuration = SessionConfiguration() 59 65 configuration.academic_session = session_1 … … 62 68 self.login() 63 69 self.browser.open(self.edit_path) 70 self.browser.getControl(name="form.course2").value = ['CERT2'] 64 71 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 65 72 self.browser.getControl(name="form.email").value = 'xx@yy.zz' -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r15346 r15455 17 17 ## 18 18 from hurry.workflow.interfaces import IWorkflowState 19 from zope.component import createObject, getUtility 19 20 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 20 21 from waeup.kofa.applicants.tests.test_browser import ( … … 273 274 def setUp(self): 274 275 super(EtranzactTestsApplicants, self).setUp() 276 certificate = createObject('waeup.Certificate') 277 certificate.code = 'CERT2' 278 certificate.title = 'New Certificate' 279 certificate.application_category = 'basic' 280 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 281 certificate) 275 282 self.applicantscontainer.application_fee = 200.0 276 283 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') … … 280 287 self.browser.getControl(name="transition").value = ['start'] 281 288 self.browser.getControl(name="form.nationality").value = ['NG'] 289 self.browser.getControl(name="form.course2").value = ['CERT2'] 282 290 #self.browser.getControl(name="form.programme_type").value = ['direct'] 283 291 self.browser.getControl("Save").click() -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r15391 r15455 50 50 def setUp(self): 51 51 super(InterswitchTestsApplicants, self).setUp() 52 certificate = createObject('waeup.Certificate') 53 certificate.code = 'CERT2' 54 certificate.title = 'New Certificate' 55 certificate.application_category = 'basic' 56 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 57 certificate) 52 58 configuration = SessionConfiguration() 53 59 configuration.academic_session = datetime.now().year - 2 … … 61 67 self.applicantscontainer.application_fee = 10000.0 62 68 self.browser.getControl(name="form.nationality").value = ['NG'] 69 self.browser.getControl(name="form.course2").value = ['CERT2'] 63 70 self.browser.getControl(name="transition").value = ['start'] 64 71 self.browser.getControl("Save").click()
Note: See TracChangeset for help on using the changeset viewer.