def pdfshow(self,REQUEST): """ pdf """ theTemplate = PDFPageTemplate('issue','var/issue.pd') parent = self.aq_inner return theTemplate.pt_render(REQUEST,parent)
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