Changeset 10702 for main/waeup.kofa/trunk
- Timestamp:
- 6 Nov 2013, 07:57:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r10688 r10702 559 559 footer_text = "%s - %s - " % (student.student_id, footer_text) 560 560 561 # Insert text before student data561 # Text before student data 562 562 if pre_text is None: 563 563 html = format_html(self._admissionText(student, portal_language)) … … 570 570 data.append(render_student_data(view, omit_fields, lang=portal_language)) 571 571 572 # Insert text after student data572 # Text after student data 573 573 data.append(Spacer(1, 20)) 574 574 if post_text is None: 575 575 datelist = student.history.messages[0].split()[0].split('-') 576 576 creation_date = u'%s/%s/%s' % (datelist[2], datelist[1], datelist[0]) 577 text = trans(_(577 post_text = trans(_( 578 578 'Your Kofa student record was created on ${a}.', 579 579 mapping = {'a': creation_date}), 580 580 portal_language) 581 else: 582 text = post_text 583 html = format_html(text) 584 data.append(Paragraph(html, NOTE_STYLE)) 581 #html = format_html(post_text) 582 #data.append(Paragraph(html, NOTE_STYLE)) 585 583 586 584 # Create pdf stream … … 589 587 pdf_stream = creator.create_pdf( 590 588 data, None, doc_title, author=author, footer=footer_text, 591 note= None)589 note=post_text) 592 590 return pdf_stream 593 591
Note: See TracChangeset for help on using the changeset viewer.