Changeset 18067 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 24 Apr 2025, 01:07:30 (3 months ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/browser.py
r17577 r18067 36 36 NigeriaOnlinePaymentAddFormPage, 37 37 NigeriaExportPDFPaymentSlip, 38 NigeriaStudentClearanceDisplayFormPage, 38 39 NigeriaStudentClearanceEditFormPage, 40 NigeriaStudentClearanceManageFormPage, 39 41 NigeriaExportPDFClearanceSlip, 40 42 NigeriaExportPDFCourseRegistrationSlip, … … 45 47 46 48 from waeup.fceokene.students.interfaces import ( 47 ICustomStudentOnlinePayment, ICustomUGStudentClearance, 49 ICustomStudentOnlinePayment, 50 ICustomUGStudentClearance, 51 ICustomPGStudentClearance, 48 52 ICustomStudentStudyLevel) 49 53 … … 149 153 return False 150 154 155 class CustomStudentClearanceDisplayFormPage(NigeriaStudentClearanceDisplayFormPage): 156 """ Page to display student clearance data 157 """ 158 159 @property 160 def form_fields(self): 161 if self.context.is_postgrad: 162 form_fields = grok.AutoFields( 163 ICustomPGStudentClearance).omit('clearance_locked') 164 else: 165 form_fields = grok.AutoFields( 166 ICustomUGStudentClearance).omit('clearance_locked') 167 if not getattr(self.context, 'officer_comment'): 168 form_fields = form_fields.omit('officer_comment') 169 else: 170 form_fields['officer_comment'].custom_widget = BytesDisplayWidget 171 return form_fields 172 173 174 class CustomStudentClearanceManageFormPage(NigeriaStudentClearanceManageFormPage): 175 """ Page to edit student clearance data 176 """ 177 178 @property 179 def form_fields(self): 180 if self.context.is_postgrad: 181 form_fields = grok.AutoFields( 182 ICustomPGStudentClearance).omit('clr_code') 183 else: 184 form_fields = grok.AutoFields( 185 ICustomUGStudentClearance).omit('clr_code') 186 return form_fields 187 188 151 189 class CustomExportPDFClearanceSlip(NigeriaExportPDFClearanceSlip): 152 190 """Deliver a PDF slip of the context. … … 184 222 def dataNotComplete(self): 185 223 return False 224 225 @property 226 def form_fields(self): 227 if self.context.is_postgrad: 228 form_fields = grok.AutoFields(ICustomPGStudentClearance).omit( 229 'clearance_locked', 'nysc_location', 'clr_code', 'officer_comment', 230 'physical_clearance_date') 231 else: 232 form_fields = grok.AutoFields(ICustomUGStudentClearance).omit( 233 'clearance_locked', 'clr_code', 'officer_comment', 234 'physical_clearance_date') 235 return form_fields 186 236 187 237 class CustomBedTicketAddPage(NigeriaBedTicketAddPage): -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/interfaces.py
r14591 r18067 90 90 readonly = False, 91 91 ) 92 jamb_reg_number = schema.TextLine( 93 title = _(u'JAMB Registration Number'), 94 required = False, 95 readonly = False, 96 ) 97 98 nin = schema.Int( 99 title = _(u'National Identity Number (NIN)'), 100 required = False, 101 readonly = False, 102 min=10000000000, 103 max=99999999999, 104 ) 92 105 93 106 fst_sit_fname = schema.TextLine(
Note: See TracChangeset for help on using the changeset viewer.