Ignore:
Timestamp:
6 Apr 2012, 16:01:57 (12 years ago)
Author:
Henrik Bettermann
Message:

Derive IPGApplicant and IUGApplicant from IApplicantBaseData and not from IApplicant. We'll need this for the customized exporter.

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  
    2828from waeup.kofa.applicants.viewlets import RequestCallbackActionButton
    2929from waeup.kofa.applicants.pdf import PDFApplicationSlip
    30 #from waeup.kofa.applicants.interfaces import IApplicant, IApplicantEdit
    3130from waeup.uniben.applicants.interfaces import (
    3231    IPGApplicant, IUGApplicant, IPGApplicantEdit, IUGApplicantEdit)
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r8051 r8053  
    2121from zope import schema
    2222from waeup.kofa.applicants.interfaces import (
    23     IApplicant, IApplicantProcessData,
     23    IApplicantBaseData,
    2424    AppCatCertificateSource, CertificateSource)
    2525from waeup.kofa.schoolgrades import ResultEntryField
     
    7171    )
    7272
    73 
    74 class IUGApplicant(IApplicant):
     73class IUGApplicant(IApplicantBaseData):
    7574    """An undergraduate applicant.
    7675
    7776    """
    7877
    79 class IPGApplicant(IApplicant):
     78class IPGApplicant(IApplicantBaseData):
    8079    """A postgraduate applicant.
    8180
     
    215214    """
    216215
     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
    217225class IUGApplicantEdit(IUGApplicant):
    218226    """An undergraduate applicant interface for editing.
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests.py

    r8020 r8053  
    127127        self.browser.open(ugapplicant_path + '/manage')
    128128        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)
    129140        self.assertFalse('Employer' in self.browser.contents)
    130141        self.browser.open(ugapplicant_path + '/edit')
Note: See TracChangeset for help on using the changeset viewer.