Ignore:
Timestamp:
3 Oct 2011, 08:11:11 (13 years ago)
Author:
Henrik Bettermann
Message:

Searching for reg_numbers or matric_numbers makes batch importing more difficult. Field validation must be skipped for reg_numbers and matric_numbers respectively if these fields are used for seeking students. After quite a lot of experiments I came to the conclusion that we need dedicated interfaces to skip the regular validation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py

    r6825 r6849  
    100100    student_id = schema.TextLine(
    101101        title = u'Student ID',
    102         required = True,
     102        required = False,
    103103        )
    104104
     
    165165    """Representation of a student.
    166166    """
     167
     168class IStudentUpdateByRegNo(IStudent):
     169    """Representation of a student. Skip regular reg_number validation.
     170    """
     171
     172    reg_number = schema.TextLine(
     173        title = u'Registration Number',
     174        default = None,
     175        required = False,
     176        )
     177
     178class IStudentUpdateByMatricNo(IStudent):
     179    """Representation of a student. Skip regular matric_number validation.
     180    """
     181
     182    matric_number = schema.TextLine(
     183        title = u'Matriculation Number',
     184        default = None,
     185        required = False,
     186        )
    167187
    168188class IStudentStudyCourse(IWAeUPObject):
Note: See TracChangeset for help on using the changeset viewer.