Changeset 13297


Ignore:
Timestamp:
7 Oct 2015, 20:25:33 (9 years ago)
Author:
Henrik Bettermann
Message:

Print notice on bed allocation slip.

File:
1 edited

Legend:

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

    r13085 r13297  
    4545    NigeriaExportPDFPaymentSlip,
    4646    NigeriaExportPDFClearanceSlip,
     47    NigeriaExportPDFBedTicketSlip,
    4748    NigeriaStudentPersonalDisplayFormPage,
    4849    NigeriaStudentPersonalManageFormPage,
     
    482483            sigs_in_footer=self._sigsInFooter(),
    483484            )
     485
     486class CustomExportPDFBedTicketSlip(NigeriaExportPDFBedTicketSlip):
     487    """Deliver a PDF slip of the context.
     488    """
     489
     490
     491    def render(self):
     492        studentview = StudentBasePDFFormPage(self.context.student,
     493            self.request, self.omit_fields)
     494        students_utils = getUtility(IStudentsUtils)
     495
     496        note = """
     497<br /><br />
     498PLEASE ENDEAVOUR TO PAY YOUR HOSTEL MAINTENANCE  CHARGE WITHIN 7 DAYS OF
     499BEING ALLOCATED A SPACE OR ELSE YOU ARE DEEMED TO HAVE VOLUNTARILY
     500FORFEITED IT AND IT GOES BACK INTO CIRCULATION TO BE AVAILABLE FOR BOOKING
     501AFRESH!"""
     502
     503        return students_utils.renderPDF(
     504            self, 'bed_allocation_slip.pdf',
     505            self.context.student, studentview,
     506            omit_fields=self.omit_fields,
     507            note=note)
Note: See TracChangeset for help on using the changeset viewer.