- 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/browser.py
r9395 r9439 24 24 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget 25 25 from waeup.kofa.browser.layout import KofaEditFormPage 26 from waeup.kofa.browser.viewlets import ManageActionButton27 26 from waeup.kofa.browser.layout import action, jsaction 28 27 from waeup.kofa.students.browser import ( 29 28 StudentClearPage, StudentRejectClearancePage, 30 StudyCourseDisplayFormPage,31 29 StudyLevelEditFormPage, 32 30 msave, emit_lock_message) … … 128 126 # return 129 127 130 class StudyCourseEditActionButton(ManageActionButton):131 grok.order(1)132 grok.context(ICustomStudentStudyCourse)133 grok.view(StudyCourseDisplayFormPage)134 grok.require('waeup.clearStudent')135 text = _('Edit level')136 target = 'edit_level'137 138 @property139 def target_url(self):140 if self.context.is_current and self.context.student.state == REQUESTED:141 return self.view.url(self.view.context, self.target)142 return False143 144 128 class StudyCourseCOEditFormPage(KofaEditFormPage): 145 129 """ Page to edit the student study course data by clearance officers.
Note: See TracChangeset for help on using the changeset viewer.