Ignore:
Timestamp:
14 Feb 2013, 16:32:40 (12 years ago)
Author:
uli
Message:

Use specialized methods to get a PDF creator; better usable in customized packages when different pdf forms are needed for different circumstances.

File:
1 edited

Legend:

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

    r9948 r9949  
    9696        return data
    9797
     98    def _getPDFCreator(self):
     99        return getUtility(IPDFCreator)
     100
    98101    def __call__(self, view=None, note=None):
    99102        """Return a PDF representation of the context applicant.
     
    109112        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    110113        separators = getUtility(IApplicantsUtils).SEPARATORS_DICT
    111         creator = getUtility(IPDFCreator)
     114        creator = self._getPDFCreator()
    112115
    113116        # append history
Note: See TracChangeset for help on using the changeset viewer.