- Timestamp:
- 28 Oct 2019, 07:12:20 (5 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py
r15696 r15704 34 34 from kofacustom.nigeria.students.browser import ( 35 35 NigeriaOnlinePaymentDisplayFormPage, 36 NigeriaStudentBaseDisplayFormPage, 36 37 NigeriaStudentBaseManageFormPage, 37 38 NigeriaStudentClearanceEditFormPage, … … 40 41 NigeriaExportPDFClearanceSlip, 41 42 NigeriaExportPDFCourseRegistrationSlip, 43 NigeriaStudentBaseEditFormPage, 42 44 ) 43 45 44 46 from kofacustom.iuokada.students.interfaces import ( 45 47 ICustomStudentOnlinePayment, ICustomStudentStudyCourse, 46 ICustomStudentStudyLevel )48 ICustomStudentStudyLevel, ICustomStudentBase) 47 49 from kofacustom.iuokada.interfaces import MessageFactory as _ 50 51 class CustomStudentBaseDisplayFormPage(NigeriaStudentBaseDisplayFormPage): 52 """ Page to display student base data 53 """ 54 form_fields = grok.AutoFields(ICustomStudentBase).omit( 55 'password', 'suspended', 'suspended_comment', 'flash_notice') 56 57 class CustomStudentBaseManageFormPage(NigeriaStudentBaseManageFormPage): 58 """ View to manage student base data 59 """ 60 form_fields = grok.AutoFields(ICustomStudentBase).omit( 61 'student_id', 'adm_code', 'suspended') 62 63 class StudentBaseEditFormPage(NigeriaStudentBaseEditFormPage): 64 """ View to edit student base data 65 """ 66 form_fields = grok.AutoFields(ICustomStudentBase).select( 67 'email', 'email2', 'parents_email', 'phone',) 48 68 49 69 class CustomExportPDFCourseRegistrationSlip( -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/interfaces.py
r15563 r15704 19 19 from zope import schema 20 20 from waeup.kofa.students.vocabularies import StudyLevelSource 21 from waeup.kofa.interfaces import validate_email 21 22 from kofacustom.nigeria.students.interfaces import ( 22 23 INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance, … … 32 33 33 34 """ 35 36 email2 = schema.ASCIILine( 37 title = _(u'Second Email'), 38 required = False, 39 constraint=validate_email, 40 ) 41 42 ICustomStudentBase['email2'].order = ICustomStudentBase[ 43 'phone'].order 44 ICustomStudentBase['phone'].order = ICustomStudentBase[ 45 'email'].order 34 46 35 47 class ICustomStudentPersonal(INigeriaStudentPersonal): -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_export.py
r15672 r15704 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,' … … 67 67 'current_level,current_session\r\nmy adm code,,,,' 68 68 '"[(\'printing_craft_practice\', \'A1\')]",my clr code,1981-02-04#,,,' 69 'anna@sample.com,,,,,,,,,,,,, Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"'69 'anna@sample.com,,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"' 70 70 ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,,' 71 71 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,,123,,,,,'
Note: See TracChangeset for help on using the changeset viewer.