Ignore:
Timestamp:
16 Jun 2022, 07:19:57 (3 years ago)
Author:
Henrik Bettermann
Message:

Implement transcript slip student view.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/browser
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/browser/pdf.py

    r14496 r16967  
    3232    header_logo_path = os.path.join(
    3333        os.path.dirname(__file__), 'static', 'pdf_logo.jpg')
    34     #watermark_path = os.path.join(
    35     #    os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
    3634
    3735    #watermark_pos = [70, 150]
    3836    logo_pos = [500, 708, 60]
     37
     38    @property
     39    def watermark_path(self):
     40        if self.view and self.view.__name__ == 'transcript_studview.pdf':
     41            self.watermark_pos = [95, 190]
     42            return os.path.join(
     43                os.path.dirname(__file__), 'static', 'pdf_stud_only.jpg')
     44        return
    3945
    4046class CustomLandscapePDFCreator(LandscapePDFCreator):
Note: See TracChangeset for help on using the changeset viewer.