Changeset 16442


Ignore:
Timestamp:
1 Apr 2021, 17:30:53 (4 years ago)
Author:
Henrik Bettermann
Message:

Addoption for second picture.

File:
1 edited

Legend:

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

    r16291 r16442  
    133133    doc_img = Image(img.name, width=4*cm, height=4*cm, kind='bound')
    134134    data_left.append([doc_img])
     135    # Uniben wants a second picture. We add this picture here.
     136    img2 = getUtility(IExtFileStore).getFileByContext(
     137        studentview.context, attr='passport2.jpg')
     138    if img2 is not None:
     139        doc_img2 = Image(img2.name, width=4*cm, height=4*cm, kind='bound')
     140        data_left.append([doc_img2])
    135141    #data.append([Spacer(1, 12)])
    136142
Note: See TracChangeset for help on using the changeset viewer.