Ignore:
Timestamp:
31 May 2012, 20:32:43 (12 years ago)
Author:
Henrik Bettermann
Message:

Customize IApplicantUpdateByRegNo, IStudentUpdateByRegNo, IStudentUpdateByMatricNo. Otherwise additional fields in ICustomApplicant or ICustomSrtudent won't be converted which leads to WrongType? errors.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/batching.py

    r8204 r8582  
    2525"""
    2626from waeup.uniben.students.interfaces import (
    27     ICustomStudent,
     27    ICustomStudent, ICustomStudentUpdateByRegNo,
     28    ICustomStudentUpdateByMatricNo
    2829    )
    2930from waeup.kofa.students.batching import StudentProcessor
     
    3334    """
    3435    iface = ICustomStudent
     36    iface_byregnumber = ICustomStudentUpdateByRegNo
     37    iface_bymatricnumber = ICustomStudentUpdateByMatricNo
  • main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py

    r8502 r8582  
    382382
    383383    """
     384
     385class ICustomStudentUpdateByRegNo(ICustomStudent):
     386    """Representation of a student. Skip regular reg_number validation.
     387
     388    """
     389    reg_number = schema.TextLine(
     390        title = _(u'Registration Number'),
     391        required = False,
     392        )
     393
     394class ICustomStudentUpdateByMatricNo(ICustomStudent):
     395    """Representation of a student. Skip regular matric_number validation.
     396
     397    """
     398    matric_number = schema.TextLine(
     399        title = _(u'Matriculation Number'),
     400        required = False,
     401        )
Note: See TracChangeset for help on using the changeset viewer.