Changeset 8054


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

Same changes as in previous revision.

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  
    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.custom.applicants.interfaces import (
    3231    IPGApplicant, IUGApplicant, IPGApplicantEdit, IUGApplicantEdit)
  • main/waeup.custom/trunk/src/waeup/custom/applicants/interfaces.py

    r8017 r8054  
    2020
    2121from zope import schema
    22 from waeup.kofa.applicants.interfaces import IApplicant, IApplicantProcessData
     22from waeup.kofa.applicants.interfaces import IApplicantBaseData
    2323from waeup.custom.interfaces import MessageFactory as _
    2424
    25 class IUGApplicant(IApplicant):
     25class IUGApplicant(IApplicantBaseData):
    2626    """An undergraduate applicant.
    2727
    2828    """
    2929
    30 class IPGApplicant(IApplicant):
     30class IPGApplicant(IApplicantBaseData):
    3131    """A postgraduate applicant.
    3232
     
    4343
    4444    """
     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        """
    4554
    4655class IUGApplicantEdit(IUGApplicant):
  • main/waeup.custom/trunk/src/waeup/custom/applicants/tests.py

    r8017 r8054  
    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.