Ignore:
Timestamp:
29 Oct 2012, 08:08:23 (12 years ago)
Author:
Henrik Bettermann
Message:

Move student workflow history to the bottom. Reformat pdf slips slightly.

File:
1 edited

Legend:

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

    r9450 r9452  
    135135        data_right.append([f_label,f_text])
    136136
    137     if getattr(studentview.context, 'certcode'):
     137    if getattr(studentview.context, 'certcode', None):
    138138        f_label = formatted_label(size=12) % _('Study Course')
    139139        f_label = Paragraph(f_label, style["Normal"])
     
    505505            footer_text = "%s - %s - " % (student.student_id, footer_text)
    506506
    507         # Insert history
    508         if not filename.startswith('payment'):
    509             data.extend(creator.fromStringList(student.history.messages))
    510 
    511507        # Insert student data table
    512508        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
     
    529525        data.extend(docs_as_flowables(view, portal_language))
    530526
    531         # Insert content table (optionally on second page)
     527        # Insert history
     528        if filename.startswith('clearance') or filename.startswith('course'):
     529            hist_translation = trans(_('Workflow History'), portal_language)
     530            data.append(Paragraph(hist_translation, style["Heading3"]))
     531            data.extend(creator.fromStringList(student.history.messages))
     532
     533       # Insert content table (optionally on second page)
    532534        if tabledata and tableheader:
    533535            #data.append(PageBreak())
Note: See TracChangeset for help on using the changeset viewer.