Changeset 10702 for main


Ignore:
Timestamp:
6 Nov 2013, 07:57:08 (11 years ago)
Author:
Henrik Bettermann
Message:

post_text can be the note.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r10688 r10702  
    559559            footer_text = "%s - %s - " % (student.student_id, footer_text)
    560560
    561         # Insert text before student data
     561        # Text before student data
    562562        if pre_text is None:
    563563            html = format_html(self._admissionText(student, portal_language))
     
    570570        data.append(render_student_data(view, omit_fields, lang=portal_language))
    571571
    572         # Insert text after student data
     572        # Text after student data
    573573        data.append(Spacer(1, 20))
    574574        if post_text is None:
    575575            datelist = student.history.messages[0].split()[0].split('-')
    576576            creation_date = u'%s/%s/%s' % (datelist[2], datelist[1], datelist[0])
    577             text = trans(_(
     577            post_text = trans(_(
    578578                'Your Kofa student record was created on ${a}.',
    579579                mapping = {'a': creation_date}),
    580580                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))
    585583
    586584        # Create pdf stream
     
    589587        pdf_stream = creator.create_pdf(
    590588            data, None, doc_title, author=author, footer=footer_text,
    591             note=None)
     589            note=post_text)
    592590        return pdf_stream
    593591
Note: See TracChangeset for help on using the changeset viewer.