Changeset 17842 for main/waeup.kofa
- Timestamp:
- 13 Jul 2024, 06:37:28 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r17564 r17842 1137 1137 def renderPDFCourseticketsOverview( 1138 1138 self, view, name, session, data, lecturers, orientation, 1139 title_length, note): 1139 title_length, note, 1140 signatures=(), 1141 sigs_in_footer=(),): 1140 1142 """Render pdf slip of course tickets for a lecturer. 1141 1143 """ … … 1206 1208 author = '%s (%s)' % (view.request.principal.title, 1207 1209 view.request.principal.id) 1210 1211 # Insert signatures 1212 # XXX: Not used in waeup.kofa, so we 1213 # do not have a test for the following lines. 1214 if signatures and not sigs_in_footer: 1215 pdf_data.append(Spacer(1, 20)) 1216 # Render one signature table per signature to 1217 # get date and signature in line. 1218 for signature in signatures: 1219 signaturetables = get_signature_tables(signature) 1220 pdf_data.append(signaturetables[0]) 1221 1208 1222 view.response.setHeader( 1209 1223 'Content-Type', 'application/pdf') … … 1211 1225 'Content-Disposition:', 'attachment; filename="%s' % filename) 1212 1226 pdf_stream = creator.create_pdf( 1213 pdf_data, None, doc_title, author, footer_title + ' -', note 1227 pdf_data, None, doc_title, author, footer_title + ' -', note, 1228 sigs_in_footer=sigs_in_footer, 1214 1229 ) 1215 1230 return pdf_stream
Note: See TracChangeset for help on using the changeset viewer.