Ignore:
Timestamp:
9 Jun 2016, 12:49:48 (8 years ago)
Author:
Henrik Bettermann
Message:

Do not display lecturer in title.

File:
1 edited

Legend:

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

    r13898 r13899  
    940940            view.context.code, session, view.request.principal.id)
    941941        session = academic_sessions_vocab.getTerm(session).title
    942         creator = getUtility(IPDFCreator)
     942        creator = getUtility(IPDFCreator, name='landscape')
    943943        style = getSampleStyleSheet()
    944         pdf_data = [Table(table_data, style=CONTENT_STYLE)]
    945         doc_title = translate(
    946             _('${a} - Session ${b}\n'
    947               'Lecturer(s): ${c}',
    948             mapping = {'a':view.context.code, 'b':session, 'c':lecturers}))
     944        pdf_data = [Paragraph('<b>Lecturer(s): %s</b>' % lecturers,
     945                              style["Normal"]),]
     946        pdf_data.append(Spacer(1, 20))
     947        pdf_data += [Table(table_data, style=CONTENT_STYLE)]
     948        doc_title = translate(_('${a} - Session ${b}',
     949            mapping = {'a':view.context.code, 'b':session}))
    949950        author = '%s (%s)' % (view.request.principal.title,
    950951                              view.request.principal.id)
Note: See TracChangeset for help on using the changeset viewer.