Changeset 9016 for main


Ignore:
Timestamp:
18 Jul 2012, 09:49:45 (12 years ago)
Author:
Henrik Bettermann
Message:

Also show files ending with '.JPG'. They have been moved from SRP.

File:
1 edited

Legend:

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

    r9015 r9016  
    223223            if img_path is None:
    224224                pass
    225             elif not img_path.endswith('.jpg'):
     225            elif not img_path[-4:] in ('.jpg', '.JPG'):
    226226                # reportlab requires jpg images, I think.
    227                 f_text = Paragraph('%s (Not displayable)' % (
     227                f_text = Paragraph('%s (not displayable)' % (
    228228                    viewlet.title,), ENTRY1_STYLE)
    229229            else:
Note: See TracChangeset for help on using the changeset viewer.