Changeset 17921 for main/kofacustom.unidel/trunk/src/kofacustom
- Timestamp:
- 9 Sep 2024, 14:28:55 (4 months ago)
- 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 19 19 from zope import schema 20 20 from waeup.kofa.students.vocabularies import StudyLevelSource 21 from waeup.kofa.interfaces import (IKofaObject, academic_sessions_vocab) 21 from waeup.kofa.interfaces import ( 22 IKofaObject, academic_sessions_vocab, validate_email) 22 23 from kofacustom.nigeria.students.interfaces import ( 23 24 INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance, … … 33 34 34 35 """ 36 37 email2 = schema.ASCIILine( 38 title = _(u'Institution Email'), 39 required = False, 40 constraint=validate_email, 41 ) 42 43 ICustomStudentBase['email2'].order = ICustomStudentBase[ 44 'phone'].order 35 45 36 46 class ICustomStudentPersonal(INigeriaStudentPersonal): -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/tests/test_export.py
r17906 r17921 48 48 self.assertMatches( 49 49 'adm_code,alr_date,alr_fname,alr_no,alr_results,' 50 'clr_code,date_of_birth,def_adm,disabled,email,em p2_end,'50 'clr_code,date_of_birth,def_adm,disabled,email,email2,emp2_end,' 51 51 'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,' 52 52 'emp_reason,emp_start,employer,employer2,' … … 68 68 'current_level,current_session\r\nmy adm code,,,,' 69 69 '"[(\'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\')]"' 71 71 ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,,' 72 72 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,,123,,,,,'
Note: See TracChangeset for help on using the changeset viewer.