Changeset 8076 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 9 Apr 2012, 10:57:31 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r8053 r8076 22 22 FriendlyDateWidget, FriendlyDateDisplayWidget, 23 23 FriendlyDatetimeDisplayWidget) 24 from waeup. kofa.widgets.phonewidget import PhoneWidget24 from waeup.uniben.widgets.phonewidget import PhoneWidget 25 25 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage, 26 26 OnlinePaymentCallbackPage, ExportPDFPage, -
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r8020 r8076 25 25 StudentClearanceManageFormPage, StudentClearanceEditFormPage, 26 26 StudentClearanceDisplayFormPage, OnlinePaymentCallbackPage, 27 ExportPDFClearanceSlipPage) 27 ExportPDFClearanceSlipPage, StudentBaseManageFormPage, 28 StudentBaseEditFormPage) 28 29 from waeup.kofa.students.viewlets import RequestCallbackActionButton 29 30 from waeup.uniben.students.interfaces import ( 30 IStudent , IStudentPersonal,31 IStudentBase, IStudent, IStudentPersonal, 31 32 IUGStudentClearance,IPGStudentClearance, 32 33 ) 33 34 from waeup.uniben.interfaces import MessageFactory as _ 35 from waeup.uniben.widgets.phonewidget import PhoneWidget 34 36 35 37 class RequestCallbackActionButton(RequestCallbackActionButton): … … 45 47 def update(self): 46 48 return 49 50 class StudentBaseManageFormPage(StudentBaseManageFormPage): 51 """ View to manage student base data 52 """ 53 form_fields = grok.AutoFields(IStudentBase).omit('student_id') 54 form_fields['phone'].custom_widget = PhoneWidget 55 56 class StudentBaseEditFormPage(StudentBaseEditFormPage): 57 """ View to edit student base data 58 """ 59 form_fields = grok.AutoFields(IStudentBase).select( 60 'email', 'phone') 61 form_fields['phone'].custom_widget = PhoneWidget 62 47 63 48 64 class StudentPersonalDisplayFormPage(StudentPersonalDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.