Changeset 14084 for main/waeup.aaue/trunk
- Timestamp:
- 17 Aug 2016, 05:59:38 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r14068 r14084 53 53 NigeriaExportPDFPaymentSlip, 54 54 NigeriaExportPDFCourseRegistrationSlip, 55 NigeriaExportPDFClearanceSlip,56 55 NigeriaStudentPersonalDisplayFormPage, 57 56 NigeriaStudentPersonalEditFormPage, 58 57 NigeriaStudentPersonalManageFormPage, 58 NigeriaStudentClearanceDisplayFormPage, 59 NigeriaExportPDFClearanceSlip, 60 NigeriaStudentClearanceManageFormPage, 59 61 NigeriaStudentClearanceEditFormPage, 60 62 NigeriaAccommodationManageFormPage, … … 69 71 ICustomStudentPersonalEdit, 70 72 ICustomUGStudentClearance, 73 ICustomPGStudentClearance, 71 74 ICustomCourseTicket, 72 75 ICustomStudentBase) … … 112 115 form_fields[ 113 116 'personal_updated'].custom_widget = FriendlyDatetimeDisplayWidget('le') 117 118 class CustomStudentClearanceDisplayFormPage(NigeriaStudentClearanceDisplayFormPage): 119 """ Page to display student clearance data 120 """ 121 122 @property 123 def form_fields(self): 124 if self.context.is_postgrad: 125 form_fields = grok.AutoFields( 126 ICustomPGStudentClearance).omit('clearance_locked') 127 else: 128 form_fields = grok.AutoFields( 129 ICustomUGStudentClearance).omit('clearance_locked') 130 if not getattr(self.context, 'officer_comment'): 131 form_fields = form_fields.omit('officer_comment') 132 else: 133 form_fields['officer_comment'].custom_widget = BytesDisplayWidget 134 return form_fields 135 136 class CustomStudentClearanceManageFormPage(NigeriaStudentClearanceManageFormPage): 137 """ Page to edit student clearance data 138 """ 139 140 @property 141 def form_fields(self): 142 if self.context.is_postgrad: 143 form_fields = grok.AutoFields( 144 ICustomPGStudentClearance).omit('clr_code') 145 else: 146 form_fields = grok.AutoFields( 147 ICustomUGStudentClearance).omit('clr_code') 148 return form_fields 114 149 115 150 class CustomStudentClearanceEditFormPage(NigeriaStudentClearanceEditFormPage): … … 435 470 target_language=portal_language) \ 436 471 + ' %s' % self.context.display_fullname 472 473 @property 474 def form_fields(self): 475 if self.context.is_postgrad: 476 form_fields = grok.AutoFields( 477 ICustomPGStudentClearance).omit('clearance_locked') 478 else: 479 form_fields = grok.AutoFields( 480 ICustomUGStudentClearance).omit('clearance_locked') 481 if not getattr(self.context, 'officer_comment'): 482 form_fields = form_fields.omit('officer_comment') 483 return form_fields 437 484 438 485 class StudentGetMatricNumberPage(UtilityView, grok.View): -
main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py
r13865 r14084 230 230 ) 231 231 232 sc_pin = schema.TextLine( 233 title = _(u'Scratch Card Pin'), 234 required = False, 235 readonly = False, 236 ) 237 238 sc_serial_number = schema.TextLine( 239 title = _(u'Scratch Card Serial Number'), 240 required = False, 241 readonly = False, 242 ) 243 232 244 ICustomUGStudentClearance['lga'].order = INigeriaUGStudentClearance[ 233 245 'lga'].order 234 246 #ICustomUGStudentClearance['date_of_birth'].order = INigeriaUGStudentClearance[ 235 247 # 'date_of_birth'].order 248 ICustomUGStudentClearance['sc_pin'].order = INigeriaUGStudentClearance[ 249 'fst_sit_fname'].order 250 ICustomUGStudentClearance['sc_serial_number'].order = ICustomUGStudentClearance[ 251 'fst_sit_fname'].order 236 252 237 253 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py
r13963 r14084 65 65 'nysc_year,officer_comment,perm_address,personal_updated,' 66 66 'phone,phone_personal,physical_clearance_date,reg_number,' 67 'religion,scd_sit_date,scd_sit_fname,scd_sit_no,scd_sit_results,' 67 'religion,sc_pin,sc_serial_number,scd_sit_date,' 68 'scd_sit_fname,scd_sit_no,scd_sit_results,' 68 69 'scd_sit_type,sex,student_id,suspended,suspended_comment,password,' 69 70 'state,history,certcode,is_postgrad,current_level,current_session' … … 73 74 '"[(\'printing_craft_practice\', \'A1\')]",,,,,,,,,,,,,,,,Tester,,,' 74 75 '234,M.,,,,,NG,,,,,,,,,"Studentroad 21\nLagos 123456\n",,' 75 '+234-123-12345#,,,123,,,,, '76 '+234-123-12345#,,,123,,,,,,,' 76 77 '"[(\'printing_craft_practice\', \'A1\')]",,f,A111111,0,,,' 77 78 'created,[u\'2015-10-26 17:45:56 WAT - Record created by system\'],'
Note: See TracChangeset for help on using the changeset viewer.