Changeset 10809 for main/kofacustom.ekodisco
- Timestamp:
- 29 Nov 2013, 06:45:29 (11 years ago)
- Location:
- main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/browser.py
r10804 r10809 21 21 from zope.component import getUtility 22 22 from hurry.workflow.interfaces import IWorkflowInfo 23 from zope.formlib.textwidgets import BytesDisplayWidget 23 24 from waeup.kofa.interfaces import REQUESTED, IExtFileStore, IKofaUtils 24 25 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget … … 36 37 from kofacustom.nigeria.students.browser import ( 37 38 NigeriaOnlinePaymentDisplayFormPage, 39 NigeriaStudentBaseDisplayFormPage, 38 40 NigeriaStudentBaseManageFormPage, 41 NigeriaStudentBaseEditFormPage, 39 42 NigeriaStudentClearanceEditFormPage, 40 43 NigeriaOnlinePaymentAddFormPage, … … 46 49 ICustomStudentOnlinePayment, ICustomStudentStudyCourse, 47 50 ICustomStudentStudyLevel, ICustomStudentStudyCourse, 48 ICustomStudentStudyCourse )51 ICustomStudentStudyCourse, ICustomStudentBase) 49 52 from kofacustom.ekodisco.interfaces import MessageFactory as _ 53 54 class CustomStudentBaseDisplayFormPage(NigeriaStudentBaseDisplayFormPage): 55 """ Page to display student base data 56 """ 57 form_fields = grok.AutoFields(ICustomStudentBase).omit( 58 'password', 'suspended', 'suspended_comment') 59 form_fields['perm_address'].custom_widget = BytesDisplayWidget 60 61 class CustomStudentBaseManageFormPage(NigeriaStudentBaseManageFormPage): 62 """ View to manage student base data 63 """ 64 form_fields = grok.AutoFields(ICustomStudentBase).omit( 65 'student_id', 'adm_code', 'suspended') 66 67 #class CustomStudentBaseEditFormPage(NigeriaStudentBaseEditFormPage): 68 # """ View to edit student base data 69 # """ 70 # form_fields = grok.AutoFields(ICustomStudentBase).select( 71 # 'email', 'phone') 72 73 74 75 50 76 51 77 … … 57 83 58 84 form_fields = grok.AutoFields(ICustomStudentStudyCourse).select( 59 'certificate', 'entry_session', 'current_session') 85 'certificate', 'entry_session', 'current_session', 86 'service_address') 87 form_fields['service_address'].custom_widget = BytesDisplayWidget 60 88 61 89 class CustomStudyCourseManageFormPage(StudyCourseManageFormPage): … … 66 94 67 95 form_fields = grok.AutoFields(ICustomStudentStudyCourse).select( 68 'certificate', 'entry_session', 'current_session') 96 'certificate', 'entry_session', 'current_session', 97 'service_address') -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/interfaces.py
r10770 r10809 32 32 """ 33 33 34 perm_address = schema.Text( 35 title = _(u'Customer Address'), 36 required = False, 37 ) 38 34 39 class ICustomStudentPersonal(INigeriaStudentPersonal): 35 40 """Student personal data. … … 58 63 59 64 """ 65 66 service_address = schema.Text( 67 title = _(u'Service Address'), 68 required = False, 69 ) 60 70 61 71 class ICustomStudentStudyLevel(INigeriaStudentStudyLevel):
Note: See TracChangeset for help on using the changeset viewer.