Changeset 17520
- Timestamp:
- 26 Jul 2023, 12:45:56 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/browser/pdf.py
r17046 r17520 37 37 def watermark_path(self): 38 38 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',): 41 40 self.watermark_pos = [95, 190] 42 41 return os.path.join( 43 42 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': 44 45 return os.path.join( 45 46 os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
Note: See TracChangeset for help on using the changeset viewer.