예제 #1
0
    def callNative(self, c, x, y, REQUEST, parent, top, pagenumber):
        """
		Native Version of callPDFPDTBySameName without Wrappers
	    """
        y = y + 40
        self.left = x
        self.top = y
        print self.Title()
        self.pagenumber = pagenumber
        # skin = self.portal_skins.newspaper_templates
        skinTool = getToolByName(self, "portal_skins")
        # containercontainer = skinTool.newspaper_templates.test.getPhysicalPath()
        containercontainer = (
            "/opt/development/newholland/press/products/Newspaper/skins/newspaper_templates/" + self.Title()
        )
        print containercontainer
        obj = PDFPageTemplate(self.Title(), containercontainer)
        print "Container: %s" % self.Title()
        # y += self.getTop()
        # x += self.getLeft()
        # Here is where we replace the continuePDF
        # Which loops through the items in the folder
        # with a obj.processScript that uses the directions in the script
        # to decide what to call next.
        result = obj.continuePDF(c, x, y, REQUEST, parent, pagenumber)
        x = result[0]
        y = result[1]
        return (x, y)
예제 #2
0
    def callPDFPDTBySameName(self,c,x,y,REQUEST,parent,top,pagenumber):
            """
	    Test
	    """
	    print self.Title()
	    columncontainer = '/opt/development/newholland/press/products/Newspaper/skins/newspaper_templates/'+self.Title()
	    obj=PDFPageTemplate(self.Title(),columncontainer)
	    containerLeft = parent.getLeft()
	    width = self.getCharsPerLine() * 6
	    useLeft = x
	    result=obj.continuePDF(c,useLeft,y+30,REQUEST,parent)
	    #verbage = self.getLinesVerbage()
	    #c.drawString(x,y,verbage)
	    #returnTriplets = self.tripletOutput(x,y,lineSpacing)
	    #self.outputTriplets(c,returnTriplets,x,y)
	    #self.pdfOutput(c,x,y)
	    newx = x + containerLeft 
	    return (newx,y)
예제 #3
0
 def callPDFPDTBySameName(self,c,x,y,REQUEST,parent,top,pagenumber):
     """
     Test
     """
     y = y  + 40	
     left = self.getLeft()
     top = self.getTop()
     print self.Title()
     self.pagenumber=pagenumber
     #skin = self.portal_skins.newspaper_templates
     skinTool = getToolByName(self, 'portal_skins')
     #containercontainer = skinTool.newspaper_templates.test.getPhysicalPath()
     containercontainer = '/opt/development/newholland/press/products/Newspaper/skins/newspaper_templates/'+self.Title()
     print containercontainer
     obj = PDFPageTemplate(self.Title(),containercontainer)
     print "Container: %s" % self.Title()
     result=obj.continuePDF(c,left,top,REQUEST,self,pagenumber)
     x = result[0]
     y = result[1]
     return (x,y)