Changeset 17921 for main


Ignore:
Timestamp:
9 Sep 2024, 14:28:55 (10 days ago)
Author:
Henrik Bettermann
Message:

Add email2 field.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/interfaces.py

    r17025 r17921  
    1919from zope import schema
    2020from waeup.kofa.students.vocabularies import StudyLevelSource
    21 from waeup.kofa.interfaces import (IKofaObject, academic_sessions_vocab)
     21from waeup.kofa.interfaces import (
     22    IKofaObject, academic_sessions_vocab, validate_email)
    2223from kofacustom.nigeria.students.interfaces import (
    2324    INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance,
     
    3334
    3435    """
     36
     37    email2 = schema.ASCIILine(
     38        title = _(u'Institution Email'),
     39        required = False,
     40        constraint=validate_email,
     41        )
     42
     43ICustomStudentBase['email2'].order = ICustomStudentBase[
     44    'phone'].order
    3545
    3646class ICustomStudentPersonal(INigeriaStudentPersonal):
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/tests/test_export.py

    r17906 r17921  
    4848        self.assertMatches(
    4949            'adm_code,alr_date,alr_fname,alr_no,alr_results,'
    50             'clr_code,date_of_birth,def_adm,disabled,email,emp2_end,'
     50            'clr_code,date_of_birth,def_adm,disabled,email,email2,emp2_end,'
    5151            'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,'
    5252            'emp_reason,emp_start,employer,employer2,'
     
    6868            'current_level,current_session\r\nmy adm code,,,,'
    6969            '"[(\'printing_craft_practice\', \'A1\')]",my clr code,1981-02-04#,,,'
    70             'anna@sample.com,,,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"'
     70            'anna@sample.com,,,,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"'
    7171            ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,,'
    7272            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,,123,,,,,'
Note: See TracChangeset for help on using the changeset viewer.