- Timestamp:
- 24 May 2019, 10:13:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/browser/viewlets.py
r14300 r15424 20 20 from waeup.kofa.interfaces import IKofaObject, academic_sessions_vocab 21 21 from waeup.kofa.browser.viewlets import ( 22 PrimaryNavTab, ManageActionButton, UpdateScoresActionButton) 22 PrimaryNavTab, ManageActionButton, UpdateScoresActionButton, 23 DownloadCSVFileActionButton, DownloadTicketOverviewActionButton) 23 24 from waeup.aaue.interfaces import MessageFactory as _ 24 25 … … 70 71 return _('Update session ${a} scores', mapping = {'a':st}) 71 72 73 74 class CustomDownloadCSVFileActionButton(DownloadCSVFileActionButton): 75 """ 'Download csv file' button for courses. 76 """ 77 78 @property 79 def target_url(self): 80 if self.view.__name__ == 'edit_prev_scores': 81 return self.view.url(self.view.context, 'download_prev_scores') 82 return self.view.url(self.view.context, 'download_scores') 83 84 85 class CustomDownloadTicketOverviewActionButton( 86 DownloadTicketOverviewActionButton): 87 """ 'Download ticket overview' button for courses. 88 """ 89 90 @property 91 def target_url(self): 92 if self.view.__name__ == 'edit_prev_scores': 93 return '' 94 return self.view.url(self.view.context, 'coursetickets.pdf') 95
Note: See TracChangeset for help on using the changeset viewer.