Changeset 7437
- Timestamp:
- 22 Dec 2011, 17:58:29 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7433 r7437 663 663 664 664 class PDFActionButton(ManageActionButton): 665 grok.order(3) 665 666 grok.context(IApplicant) 666 667 grok.require('waeup.viewApplication') … … 714 715 715 716 class ApplicantManageActionButton(ManageActionButton): 717 grok.order(1) 716 718 grok.context(IApplicant) 717 719 grok.view(ApplicantDisplayFormPage) … … 721 723 722 724 class ApplicantEditActionButton(ManageActionButton): 725 grok.order(2) 723 726 grok.context(IApplicant) 724 727 grok.view(ApplicantDisplayFormPage) … … 732 735 """ 733 736 if self.context.locked: 737 return 738 return self.view.url(self.view.context, self.target) 739 740 class StudentCreateActionButton(ManageActionButton): 741 grok.order(4) 742 grok.context(IApplicant) 743 grok.require('waeup.manageApplication') 744 icon = 'actionicon_entrance.png' 745 text = 'Create student record' 746 target ='createstudent' 747 748 @property 749 def target_url(self): 750 """Get a URL to the target... 751 """ 752 if IWorkflowState(self.context).getState() != 'admitted': 734 753 return 735 754 return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.