- Timestamp:
- 1 Oct 2020, 06:54:58 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/browser/pdf.py
r15565 r16263 21 21 22 22 import os 23 from string import Template 23 24 from waeup.kofa.browser.pdf import PDFCreator 24 25 … … 34 35 watermark_pos = [45, 140] 35 36 logo_pos = [520, 630, 60] 37 38 signature_benji_img_path = os.path.join( 39 os.path.dirname(__file__), 'static', 'benji_signature.png') 40 41 def _substitute_markers(self, text): 42 """ 43 """ 44 text = Template(text) 45 PDF_SIGNATURES = { 46 'signature_benji_img_path': self.signature_benji_img_path, 47 } 48 return text.safe_substitute(PDF_SIGNATURES)
Note: See TracChangeset for help on using the changeset viewer.