Changeset 9497
- Timestamp:
- 1 Nov 2012, 09:38:55 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py
r9465 r9497 34 34 INigeriaUGApplicant, INigeriaPGApplicant, 35 35 INigeriaApplicantOnlinePayment, 36 INigeriaUGApplicantEdit, INigeriaPGApplicantEdit,36 INigeriaUGApplicantEdit, 37 37 INigeriaApplicantUpdateByRegNo, 38 38 IPUTMEApplicantEdit, … … 222 222 """ 223 223 224 class ICustomUGApplicantEdit(I NigeriaUGApplicantEdit):224 class ICustomUGApplicantEdit(ICustomUGApplicant): 225 225 """An undergraduate applicant interface for edit forms. 226 226 … … 234 234 """ 235 235 236 class ICustomPGApplicantEdit(INigeriaPGApplicantEdit): 236 237 email = schema.ASCIILine( 238 title = _(u'Email Address'), 239 required = True, 240 constraint=validate_email, 241 ) 242 date_of_birth = FormattedDate( 243 title = _(u'Date of Birth'), 244 required = True, 245 show_year = True, 246 ) 247 248 class ICustomPGApplicantEdit(ICustomPGApplicant): 237 249 """A postgraduate applicant interface for editing. 238 250 … … 246 258 """ 247 259 260 email = schema.ASCIILine( 261 title = _(u'Email Address'), 262 required = True, 263 constraint=validate_email, 264 ) 265 date_of_birth = FormattedDate( 266 title = _(u'Date of Birth'), 267 required = True, 268 show_year = True, 269 ) 270 248 271 class ICustomApplicantOnlinePayment(INigeriaApplicantOnlinePayment): 249 272 """An applicant payment via payment gateways. -
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/tests/test_browser.py
r9465 r9497 118 118 self.browser.open(self.becapplicant_path + '/manage') 119 119 self.assertEqual(self.browser.headers['Status'], '200 Ok') 120 self.assertTrue("'O' Level" in self.browser.contents) 120 121 self.browser.open(self.becapplicant_path + '/edit') 121 122 self.assertEqual(self.browser.headers['Status'], '200 Ok') 123 self.assertTrue("'O' Level" in self.browser.contents) 122 124 self.browser.open(self.becapplicant_path + '/application_slip.pdf') 123 125 self.assertEqual(self.browser.headers['Status'], '200 Ok')
Note: See TracChangeset for help on using the changeset viewer.