Changeset 9497


Ignore:
Timestamp:
1 Nov 2012, 09:38:55 (12 years ago)
Author:
Henrik Bettermann
Message:

ICustomUGApplicantEdit mus inherit from ICustomUGApplicant.

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  
    3434    INigeriaUGApplicant, INigeriaPGApplicant,
    3535    INigeriaApplicantOnlinePayment,
    36     INigeriaUGApplicantEdit, INigeriaPGApplicantEdit,
     36    INigeriaUGApplicantEdit,
    3737    INigeriaApplicantUpdateByRegNo,
    3838    IPUTMEApplicantEdit,
     
    222222        """
    223223
    224 class ICustomUGApplicantEdit(INigeriaUGApplicantEdit):
     224class ICustomUGApplicantEdit(ICustomUGApplicant):
    225225    """An undergraduate applicant interface for edit forms.
    226226
     
    234234    """
    235235
    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
     248class ICustomPGApplicantEdit(ICustomPGApplicant):
    237249    """A postgraduate applicant interface for editing.
    238250
     
    246258    """
    247259
     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
    248271class ICustomApplicantOnlinePayment(INigeriaApplicantOnlinePayment):
    249272    """An applicant payment via payment gateways.
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/tests/test_browser.py

    r9465 r9497  
    118118        self.browser.open(self.becapplicant_path + '/manage')
    119119        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     120        self.assertTrue("'O' Level" in self.browser.contents)
    120121        self.browser.open(self.becapplicant_path + '/edit')
    121122        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     123        self.assertTrue("'O' Level" in self.browser.contents)
    122124        self.browser.open(self.becapplicant_path + '/application_slip.pdf')
    123125        self.assertEqual(self.browser.headers['Status'], '200 Ok')
Note: See TracChangeset for help on using the changeset viewer.