- Timestamp:
- 3 Dec 2014, 05:14:41 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r11613 r12121 21 21 from waeup.kofa.browser.viewlets import ManageActionButton 22 22 from waeup.uniben.students.interfaces import ( 23 ICustomStudentStudyCourse, ICustomStudentStudyLevel) 23 ICustomStudentStudyCourse, ICustomStudentStudyLevel, 24 ICustomStudent, ) 24 25 from waeup.kofa.students.viewlets import ( 25 26 FileDisplay, FileUpload, Image) 26 27 from waeup.kofa.students.browser import ( 27 28 ExportPDFClearanceSlipPage, StudyCourseDisplayFormPage, 28 StudyLevelDisplayFormPage )29 StudyLevelDisplayFormPage, StudentClearanceDisplayFormPage) 29 30 30 31 from kofacustom.nigeria.interfaces import MessageFactory as _ … … 56 57 def target_url(self): 57 58 return self.view.url(self.view.context, self.target) 59 60 61 class ClearanceInvitationSlipActionButton(ManageActionButton): 62 grok.order(5) 63 grok.context(ICustomStudent) 64 grok.view(StudentClearanceDisplayFormPage) 65 grok.require('waeup.viewStudent') 66 icon = 'actionicon_pdf.png' 67 text = _('Download clearance invitation slip') 68 target = 'clearance_invitation_slip.pdf' 69 58 70 59 71 # JAMB Letter
Note: See TracChangeset for help on using the changeset viewer.