- Timestamp:
- 6 Aug 2013, 20:32:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r10278 r10458 33 33 from waeup.kofa.students.workflow import ( 34 34 ADMITTED, PAID, REQUESTED, RETURNING, CLEARED, REGISTERED, 35 VALIDATED )35 VALIDATED, GRADUATED, TRANSCRIPT) 36 36 from waeup.kofa.students.browser import ( 37 37 clearance_disabled_message, … … 675 675 @property 676 676 def target_url(self): 677 return self.view.url(self.view.context, self.target) 678 679 class RequestTranscriptActionButton(ManageActionButton): 680 grok.order(8) 681 grok.context(IStudent) 682 grok.view(StudentBaseDisplayFormPage) 683 grok.require('waeup.handleStudent') 684 text = _('Request transcript') 685 target = 'request_transcript' 686 icon = 'actionicon_transcript.png' 687 688 @property 689 def target_url(self): 690 if self.context.state != GRADUATED: 691 return '' 692 return self.view.url(self.view.context, self.target) 693 694 class ManageTranscriptRequestActionButton(ManageActionButton): 695 grok.order(9) 696 grok.context(IStudent) 697 grok.view(StudentBaseDisplayFormPage) 698 grok.require('waeup.manageStudent') 699 text = _('Manage transcript request') 700 target = 'manage_transcript_request' 701 icon = 'actionicon_transcript.png' 702 703 @property 704 def target_url(self): 705 if self.context.state != TRANSCRIPT: 706 return '' 677 707 return self.view.url(self.view.context, self.target) 678 708
Note: See TracChangeset for help on using the changeset viewer.