Changeset 10688


Ignore:
Timestamp:
4 Nov 2013, 06:46:51 (11 years ago)
Author:
Henrik Bettermann
Message:

Print current mode on pdf slips.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

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

    r10650 r10688  
    12491249    prefix = 'form'
    12501250    omit_fields = (
    1251         'department', 'faculty', 'entry_session', 'certificate',
     1251        'department', 'faculty', 'current_mode', 'entry_session', 'certificate',
    12521252        'password', 'suspended', 'phone', 'email',
    12531253        'adm_code', 'suspended_comment')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r10686 r10688  
    161161                'studycourse'].certificate.__parent__.__parent__.__parent__.longtitle,
    162162                )
     163            f_text = Paragraph(f_text, ENTRY1_STYLE)
     164            data_right.append([f_label,f_text])
     165        if not 'current_mode' in omit_fields:
     166            studymodes_dict = getUtility(IKofaUtils).STUDY_MODES_DICT
     167            sm = studymodes_dict[studentview.context[
     168                'studycourse'].certificate.study_mode]
     169            f_label = trans(_('Study Mode:'), lang)
     170            f_label = Paragraph(f_label, ENTRY1_STYLE)
     171            f_text = formatted_text(sm)
    163172            f_text = Paragraph(f_text, ENTRY1_STYLE)
    164173            data_right.append([f_label,f_text])
Note: See TracChangeset for help on using the changeset viewer.