Changeset 16728 for main/kofacustom.dspg


Ignore:
Timestamp:
1 Dec 2021, 13:12:34 (3 years ago)
Author:
Henrik Bettermann
Message:

Add student_id field.

Location:
main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/interfaces.py

    r16726 r16728  
    290290class ICustomSpecialApplicant(ISpecialApplicant):
    291291
     292    student_id = schema.TextLine(
     293        title = _(u'Student Id'),
     294        required = True,
     295        )
     296
    292297    certificate = schema.Choice(
    293298        title = _(u'Course of Study'),
     
    337342    #    )
    338343
     344ICustomSpecialApplicant[
     345    'student_id'].order =  ISpecialApplicant['reg_number'].order
     346
    339347class ICustomApplicant(ICustomUGApplicant, ICustomPGApplicant,
    340348                       ICustomSpecialApplicant):
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/tests/test_browser.py

    r16308 r16728  
    209209        self.browser.getControl(name="form.date_of_birth").value = '09/09/1988'
    210210        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
     211        self.browser.getControl(name="form.student_id").value = 'X8888'
    211212        self.browser.getControl(name="form.certificate").value = ['CERT1']
    212         self.browser.getControl(name="form.carryover_courses_1").value = 'Test Course 1 - TCO1'
    213         self.browser.getControl(name="form.carryover_courses_2").value = 'Test Course 2 - TCO2 \nTest Course 3 - TCO3'
     213        #self.browser.getControl(name="form.carryover_courses_1").value = 'Test Course 1 - TCO1'
     214        #self.browser.getControl(name="form.carryover_courses_2").value = 'Test Course 2 - TCO2 \nTest Course 3 - TCO3'
    214215        self.browser.getControl(name="form.grad_year").value = ['2015']
    215216        self.configuration.carryover4_fee = 5000.0
Note: See TracChangeset for help on using the changeset viewer.