- Timestamp:
- 29 Sep 2020, 09:55:22 (4 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py
r16252 r16255 142 142 form_fields = grok.AutoFields(ICustomStudentPersonal) 143 143 144 def render(self): 145 studentview = StudentBasePDFFormPage(self.context.student, 146 self.request, self.omit_fields) 147 students_utils = getUtility(IStudentsUtils) 148 149 watermark_path = os.path.join( 150 os.path.dirname(__file__), 'static', 'watermark.pdf') 151 watermark = open(watermark_path, 'rb') 152 file_path = os.path.join( 153 os.path.dirname(__file__), 'static', 'biodataPage2.pdf') 154 file = open(file_path, 'rb') 155 mergefiles = [file,] 156 return students_utils.renderPDF( 157 self, 'personal_slip.pdf', 158 self.context.student, studentview, 159 omit_fields=self.omit_fields, 160 mergefiles=mergefiles, 161 watermark=watermark) 162 144 163 class CustomAccommodationDisplayFormPage(NigeriaAccommodationDisplayFormPage): 145 164 """ Page to view bed tickets.
Note: See TracChangeset for help on using the changeset viewer.