Changeset 17520 for main


Ignore:
Timestamp:
26 Jul 2023, 12:45:56 (17 months ago)
Author:
Henrik Bettermann
Message:

Use only student version.

File:
1 edited

Legend:

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

    r17046 r17520  
    3737    def watermark_path(self):
    3838        if self.view and self.view.__name__ == 'transcript.pdf':
    39             usertype = getattr(self.view.request.principal, 'user_type', None)
    40             if usertype and usertype == 'student':
     39            if self.view.request.principal.id not in ('xyz',):
    4140                self.watermark_pos = [95, 190]
    4241                return os.path.join(
    4342                    os.path.dirname(__file__), 'static', 'pdf_stud_only.jpg')
     43            #usertype = getattr(self.view.request.principal, 'user_type', None)
     44            #if usertype and usertype == 'student':
    4445        return os.path.join(
    4546            os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
Note: See TracChangeset for help on using the changeset viewer.