Changeset 16160 for main/kofacustom.iuokada/trunk/src
- Timestamp:
- 10 Jul 2020, 06:13:51 (4 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py
r16150 r16160 17 17 ## 18 18 import grok 19 import os 19 20 from zope.i18n import translate 20 21 from zope.schema.interfaces import ConstraintNotSatisfied … … 302 303 def render(self): 303 304 students_utils = getUtility(IStudentsUtils) 305 watermark_path = os.path.join( 306 os.path.dirname(__file__), 'static', 'watermark.pdf') 307 watermark = open(watermark_path, 'rb') 308 file_path = os.path.join( 309 os.path.dirname(__file__), 'static', 'admission_letter.pdf') 310 file = open(file_path, 'rb') 311 mergefiles = [file,] 304 312 return students_utils.renderPDFAdmissionLetter(self, 305 313 self.context.student, omit_fields=self.omit_fields, 306 pre_text=self.pre_text, post_text=self.post_text) 314 pre_text=self.pre_text, post_text=self.post_text, 315 mergefiles=mergefiles, 316 watermark=watermark)
Note: See TracChangeset for help on using the changeset viewer.