Changeset 12856 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 14 Apr 2015, 12:01:57 (10 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r12855 r12856 19 19 from zope.i18n import translate 20 20 from zope.schema.interfaces import ConstraintNotSatisfied 21 from zope.formlib.textwidgets import BytesDisplayWidget 21 22 from zope.component import getUtility 22 23 from hurry.workflow.interfaces import IWorkflowInfo … … 44 45 NigeriaExportPDFPaymentSlipPage, 45 46 NigeriaExportPDFClearanceSlipPage, 47 NigeriaStudentPersonalDisplayFormPage, 48 NigeriaStudentPersonalManageFormPage 46 49 ) 47 50 48 51 from waeup.uniben.students.interfaces import ( 49 52 ICustomStudent, 50 ICustomStudentOnlinePayment, ICustomStudentStudyCourse, 53 ICustomStudentOnlinePayment, 54 ICustomStudentStudyCourse, 51 55 ICustomStudentStudyLevel, 52 56 ICustomUGStudentClearance, 53 ICustomPGStudentClearance) 57 ICustomPGStudentClearance, 58 ICustomStudentPersonal) 54 59 from waeup.uniben.interfaces import MessageFactory as _ 55 60 … … 203 208 omit_fields=self.omit_fields, 204 209 note=self.note) 210 211 class CustomStudentPersonalDisplayFormPage( 212 NigeriaStudentPersonalDisplayFormPage): 213 """ Page to display student personal data 214 """ 215 216 form_fields = grok.AutoFields(ICustomStudentPersonal) 217 form_fields['perm_address'].custom_widget = BytesDisplayWidget 218 form_fields['next_kin_address'].custom_widget = BytesDisplayWidget 219 form_fields[ 220 'personal_updated'].custom_widget = FriendlyDatetimeDisplayWidget('le') 221 222 class CustomStudentPersonalManageFormPage( 223 NigeriaStudentPersonalManageFormPage): 224 """ Page to manage personal data 225 """ 226 227 form_fields = grok.AutoFields(ICustomStudentPersonal) 228 form_fields['personal_updated'].for_display = True 229 form_fields[ 230 'personal_updated'].custom_widget = FriendlyDatetimeDisplayWidget('le') 205 231 206 232 class StudyCourseCOEditFormPage(KofaEditFormPage): -
main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py
r9540 r12856 18 18 19 19 from zope import schema 20 from waeup.kofa.interfaces import validate_email 20 21 from kofacustom.nigeria.students.interfaces import ( 21 22 INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance, … … 37 38 """ 38 39 40 parent_email = schema.ASCIILine( 41 title = _(u'Parent Email'), 42 required = False, 43 constraint=validate_email, 44 ) 45 39 46 class ICustomUGStudentClearance(INigeriaUGStudentClearance): 40 47 """Representation of ug student clearance data. … … 48 55 49 56 50 class ICustomStudent(ICustomStudentBase, ICustomUGStudentClearance,51 ICustomPGStudentClearance, ICustomStudentPersonal):57 class ICustomStudent(ICustomStudentBase, ICustomUGStudentClearance, 58 ICustomPGStudentClearance, ICustomStudentPersonal): 52 59 """Representation of a student. 53 60
Note: See TracChangeset for help on using the changeset viewer.