Changeset 8054
- Timestamp:
- 6 Apr 2012, 16:12:07 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/applicants/browser.py
r8017 r8054 28 28 from waeup.kofa.applicants.viewlets import RequestCallbackActionButton 29 29 from waeup.kofa.applicants.pdf import PDFApplicationSlip 30 #from waeup.kofa.applicants.interfaces import IApplicant, IApplicantEdit31 30 from waeup.custom.applicants.interfaces import ( 32 31 IPGApplicant, IUGApplicant, IPGApplicantEdit, IUGApplicantEdit) -
main/waeup.custom/trunk/src/waeup/custom/applicants/interfaces.py
r8017 r8054 20 20 21 21 from zope import schema 22 from waeup.kofa.applicants.interfaces import IApplicant , IApplicantProcessData22 from waeup.kofa.applicants.interfaces import IApplicantBaseData 23 23 from waeup.custom.interfaces import MessageFactory as _ 24 24 25 class IUGApplicant(IApplicant ):25 class IUGApplicant(IApplicantBaseData): 26 26 """An undergraduate applicant. 27 27 28 28 """ 29 29 30 class IPGApplicant(IApplicant ):30 class IPGApplicant(IApplicantBaseData): 31 31 """A postgraduate applicant. 32 32 … … 43 43 44 44 """ 45 46 def loggerInfo(ob_class, comment): 47 """Adds an INFO message to the log file 48 """ 49 50 def createStudent(): 51 """Create a student object from applicatnt data 52 and copy applicant object. 53 """ 45 54 46 55 class IUGApplicantEdit(IUGApplicant): -
main/waeup.custom/trunk/src/waeup/custom/applicants/tests.py
r8017 r8054 127 127 self.browser.open(ugapplicant_path + '/manage') 128 128 self.assertEqual(self.browser.headers['Status'], '200 Ok') 129 # We can save the applicant 130 self.browser.getControl(name="form.reg_number").value = '1234' 131 self.browser.getControl(name="form.firstname").value = 'John' 132 self.browser.getControl(name="form.lastname").value = 'Tester' 133 self.browser.getControl(name="form.course1").value = ['CERT1'] 134 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 135 self.browser.getControl(name="form.lga").value = ['foreigner'] 136 self.browser.getControl(name="form.sex").value = ['m'] 137 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 138 self.browser.getControl("Save").click() 139 self.assertMatches('...Form has been saved...', self.browser.contents) 129 140 self.assertFalse('Employer' in self.browser.contents) 130 141 self.browser.open(ugapplicant_path + '/edit')
Note: See TracChangeset for help on using the changeset viewer.