Ignore:
Timestamp:
1 Oct 2020, 06:51:10 (4 years ago)
Author:
Henrik Bettermann
Message:

Use Uli's marker substitution hack to inject signature
images into pdf files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r16251 r16262  
    539539    form_fields = grok.AutoFields(IStudentBase).select('student_id', 'reg_number')
    540540
     541
     542    # Can be used for testing. Just replace 'post_text=None'
     543    # by post_text=self.post_text'
     544    post_text = '''
     545Conratulations!
     546
     547
     548<img src="${test_signature_img_path}" valign="-20" height="38" width="86" />
     549
     550
     551John Tester
     552- Registrar -
     553'''
     554
    541555    @property
    542556    def label(self):
     
    554568        return students_utils.renderPDFAdmissionLetter(self,
    555569            self.context.student, omit_fields=self.omit_fields,
    556             letterhead_path=letterhead_path)
     570            letterhead_path=letterhead_path, post_text=None)
    557571
    558572class StudentBaseManageFormPage(KofaEditFormPage):
Note: See TracChangeset for help on using the changeset viewer.