예제 #1
0
    def pdfshow(self,REQUEST): 
        """
        pdf
        """
	theTemplate = PDFPageTemplate('issue','var/issue.pd')
	parent = self.aq_inner
        return theTemplate.pt_render(REQUEST,parent)
예제 #2
0
 def pdfshow(self, REQUEST):
     """
     pdf
     """
     theTemplate = PDFPageTemplate(
         "issue", "/opt/newhol/press/products/Newspaper/skins/newspaper_templates/issue.pd"
     )
     parent = self.aq_inner
     thePDF = theTemplate.pt_render(REQUEST, parent)
     REQUEST.response.setHeader("Content-type", "application/pdf")
     return thePDF