Changeset 8053 for main/waeup.uniben/trunk/src/waeup/uniben
- Timestamp:
- 6 Apr 2012, 16:01:57 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r8051 r8053 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.uniben.applicants.interfaces import ( 32 31 IPGApplicant, IUGApplicant, IPGApplicantEdit, IUGApplicantEdit) -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py
r8051 r8053 21 21 from zope import schema 22 22 from waeup.kofa.applicants.interfaces import ( 23 IApplicant , IApplicantProcessData,23 IApplicantBaseData, 24 24 AppCatCertificateSource, CertificateSource) 25 25 from waeup.kofa.schoolgrades import ResultEntryField … … 71 71 ) 72 72 73 74 class IUGApplicant(IApplicant): 73 class IUGApplicant(IApplicantBaseData): 75 74 """An undergraduate applicant. 76 75 77 76 """ 78 77 79 class IPGApplicant(IApplicant ):78 class IPGApplicant(IApplicantBaseData): 80 79 """A postgraduate applicant. 81 80 … … 215 214 """ 216 215 216 def loggerInfo(ob_class, comment): 217 """Adds an INFO message to the log file 218 """ 219 220 def createStudent(): 221 """Create a student object from applicatnt data 222 and copy applicant object. 223 """ 224 217 225 class IUGApplicantEdit(IUGApplicant): 218 226 """An undergraduate applicant interface for editing. -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests.py
r8020 r8053 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.