Changeset 15246
- Timestamp:
- 16 Nov 2018, 16:05:31 (6 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15243 r15246 3441 3441 grok.require('waeup.editScores') 3442 3442 3443 @property 3444 def note(self): 3445 return 3446 3443 3447 def data(self, session): 3444 3448 cat = queryUtility(ICatalog, name='coursetickets_catalog') … … 3474 3478 students_utils = getUtility(IStudentsUtils) 3475 3479 return students_utils.renderPDFCourseticketsOverview( 3476 self, session, self.data(session), lecturers, 'landscape', 90) 3480 self, session, self.data(session), lecturers, 'landscape', 90, 3481 self.note) 3477 3482 3478 3483 class ExportJobContainerOverview(KofaPage): -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r15203 r15246 157 157 158 158 def renderPDFCourseticketsOverview( 159 view, session, data, lecturers, orientation, title_length): 159 view, session, data, lecturers, orientation, 160 title_length, note): 160 161 """Render pdf slip of course tickets for a lecturer. 161 162 """ -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r15241 r15246 1000 1000 1001 1001 def renderPDFCourseticketsOverview( 1002 self, view, session, data, lecturers, orientation, title_length): 1002 self, view, session, data, lecturers, orientation, 1003 title_length, note): 1003 1004 """Render pdf slip of course tickets for a lecturer. 1004 1005 """ … … 1034 1035 mapping = {'a':data[1][5],'b':data[1][6]})), style["Normal"]),] 1035 1036 pdf_data.append(Spacer(1, 20)) 1036 col width = colWidths=[None] * len(data[0][0])1037 pdf_data += [Table(data[0], col width, style=CONTENT_STYLE)]1037 colWidths = [None] * len(data[0][0]) 1038 pdf_data += [Table(data[0], colWidths=colWidths, style=CONTENT_STYLE)] 1038 1039 # Process title if too long 1039 1040 title = " ".join(view.context.title.split()) … … 1057 1058 'Content-Disposition:', 'attachment; filename="%s' % filename) 1058 1059 pdf_stream = creator.create_pdf( 1059 pdf_data, None, doc_title, author, footer_title + ' -' 1060 pdf_data, None, doc_title, author, footer_title + ' -', note 1060 1061 ) 1061 1062 return pdf_stream
Note: See TracChangeset for help on using the changeset viewer.