- Timestamp:
- 23 Feb 2016, 17:36:46 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r13063 r13723 24 24 ICustomStudent, ) 25 25 from waeup.kofa.students.fileviewlets import ( 26 StudentFileDisplay, StudentFileUpload, StudentImage )26 StudentFileDisplay, StudentFileUpload, StudentImage,) 27 27 from waeup.kofa.students.browser import ( 28 28 ExportPDFClearanceSlip, StudyCourseDisplayFormPage, 29 StudyLevelDisplayFormPage, StudentClearanceDisplayFormPage) 29 StudyLevelDisplayFormPage, StudentClearanceDisplayFormPage, 30 StudentBaseDisplayFormPage) 30 31 31 32 from kofacustom.nigeria.interfaces import MessageFactory as _ … … 94 95 return False 95 96 97 class ExaminationScheduleSlipActionButton(ManageActionButton): 98 grok.order(10) 99 grok.context(ICustomStudent) 100 grok.view(StudentBaseDisplayFormPage) 101 grok.require('waeup.viewStudent') 102 icon = 'actionicon_pdf.png' 103 text = _('Download examination schedule slip') 104 target = 'examination_schedule_slip.pdf' 105 106 @property 107 def target_url(self): 108 if self.context.flash_notice \ 109 and 'exam' in self.context.flash_notice.lower(): 110 return self.view.url(self.view.context, self.target) 111 return False 96 112 97 113 # JAMB Letter
Note: See TracChangeset for help on using the changeset viewer.