Changeset 14534 for main/waeup.aaue
- Timestamp:
- 12 Feb 2017, 19:55:31 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r14533 r14534 51 51 StudyCourseTranscriptPage, 52 52 DownloadScoresView, 53 StudentRequestPasswordPage 53 StudentRequestPasswordPage, 54 StudyCourseManageFormPage 54 55 ) 55 56 from kofacustom.nigeria.students.browser import ( … … 79 80 ICustomPGStudentClearance, 80 81 ICustomCourseTicket, 81 ICustomStudentBase) 82 ICustomStudentBase, 83 ICustomStudentStudyCourse) 82 84 from waeup.aaue.interswitch.browser import gateway_net_amt 83 85 from waeup.aaue.interfaces import MessageFactory as _ … … 303 305 return text + 'Transaction Charge.' 304 306 307 class CustomStudyCourseManageFormPage(StudyCourseManageFormPage): 308 """ Page to edit the student study course data 309 """ 310 grok.context(ICustomStudentStudyCourse) 311 312 @property 313 def form_fields(self): 314 if self.context.is_postgrad: 315 form_fields = grok.AutoFields(ICustomStudentStudyCourse).omit( 316 'previous_verdict') 317 else: 318 form_fields = grok.AutoFields(ICustomStudentStudyCourse) 319 form_fields['imported_cgpa'].for_display = True 320 return form_fields 321 305 322 class CustomStudyLevelDisplayFormPage(StudyLevelDisplayFormPage): 306 323 """ Page to display student study levels … … 328 345 """ 329 346 grok.context(ICustomStudentStudyLevel) 347 348 form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit( 349 'validation_date', 'validated_by', 'total_credits', 'gpa', 'level', 350 'total_credits_s1', 'total_credits_s2') 351 352 form_fields['imported_gpa'].for_display = True 353 form_fields['imported_cgpa'].for_display = True 330 354 331 355 class CustomStudyLevelEditFormPage(StudyLevelEditFormPage):
Note: See TracChangeset for help on using the changeset viewer.