- Timestamp:
- 27 Oct 2012, 06:18:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r9382 r9439 18 18 19 19 import grok 20 from waeup.kofa.interfaces import REQUESTED 21 from waeup.kofa.browser.viewlets import ManageActionButton 22 from waeup.uniben.students.interfaces import ICustomStudentStudyCourse 20 23 from waeup.kofa.students.viewlets import ( 21 24 FileDisplay, FileUpload, Image) 22 from waeup.kofa.students.browser import ExportPDFClearanceSlipPage 25 from waeup.kofa.students.browser import ( 26 ExportPDFClearanceSlipPage, StudyCourseDisplayFormPage) 23 27 24 28 from kofacustom.nigeria.interfaces import MessageFactory as _ 25 29 30 class StudyCourseEditActionButton(ManageActionButton): 31 grok.order(1) 32 grok.context(ICustomStudentStudyCourse) 33 grok.view(StudyCourseDisplayFormPage) 34 grok.require('waeup.clearStudent') 35 text = _('Edit level') 36 target = 'edit_level' 37 38 @property 39 def target_url(self): 40 if self.context.is_current and self.context.student.state == REQUESTED: 41 return self.view.url(self.view.context, self.target) 42 return False 26 43 27 44 # JAMB Letter
Note: See TracChangeset for help on using the changeset viewer.