Ignore:
Timestamp:
29 May 2012, 22:35:26 (12 years ago)
Author:
Henrik Bettermann
Message:

We are customizing PDFApplicationSlip adapter and thus need to define the note there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py

    r8313 r8549  
    3939    grok.implements(IPDF)
    4040    grok.name('application_slip')
     41    note = None
    4142
    4243    form_fields =  grok.AutoFields(IApplicant).omit(
     
    9596        return data
    9697
    97     def __call__(self, view=None, note=None):
     98    def __call__(self, view=None):
    9899        """Return a PDF representation of the context applicant.
    99100
     
    132133        data = self._addComments(data)
    133134
    134         return creator.create_pdf(data, None, doc_title, note=note)
     135        return creator.create_pdf(data, None, doc_title, note=self.note)
Note: See TracChangeset for help on using the changeset viewer.