Changeset 15424 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 24 May 2019, 10:13:52 (6 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r15414 r15424 1280 1280 # only orientation is different 1281 1281 return students_utils.renderPDFCourseticketsOverview( 1282 self, session, self.data(session), lecturers, '', 45, self.note) 1282 self, 'coursetickets', 1283 session, self.data(session), lecturers, '', 45, self.note) 1283 1284 1284 1285 class DownloadPreviousSessionScoresView(DownloadScoresView): -
main/waeup.aaue/trunk/src/waeup/aaue/students/viewlets.py
r15340 r15424 29 29 StudyCourseTranscriptActionButton, 30 30 TranscriptSlipActionButton, 31 DownloadCSVFileActionButton, 32 DownloadTicketOverviewActionButton) 31 ) 33 32 from waeup.kofa.students.browser import StudyLevelDisplayFormPage 34 33 … … 149 148 grok.name('transcript_slip') 150 149 151 class CustomDownloadCSVFileActionButton(DownloadCSVFileActionButton):152 """ 'Download csv file' button for courses.153 """154 155 @property156 def target_url(self):157 if self.view.__name__ == 'edit_prev_scores':158 return self.view.url(self.view.context, 'download_prev_scores')159 return self.view.url(self.view.context, 'download_scores')160 161 class CustomDownloadTicketOverviewActionButton(162 DownloadTicketOverviewActionButton):163 """ 'Download ticket overview' button for courses.164 """165 166 @property167 def target_url(self):168 if self.view.__name__ == 'edit_prev_scores':169 return ''170 return self.view.url(self.view.context, 'coursetickets.pdf')171 172 150 class StudyLevelRepairActionButton(ManageActionButton): 173 151 grok.order(2)
Note: See TracChangeset for help on using the changeset viewer.