def coreAndAss(pdf,fac,p,g): filename = p+'CORE-MEM-ROLLUP' if g==0: tempString = "FAC-" if g==1: tempString= "GANG" reader = csv.reader(open(filename+'.csv', 'rb'),delimiter = ',') f = p+'CORE-MEM-' name2= tempString+fac vna2mpb3.coremem(p,name2,1) pdf.set_font('Helvetica','BU',8) pdf.cell(0,3,fac+' CORE MEMBERS AND ASSOCIATES',0,1,'C') image1 = p+tempString+fac+'-coremem.png' pdf.image(image1,30,30,150,100,type='') pdf.set_font('Helvetica','',8) pdf.ln(115) for row in reader: j = 0 str = ['','','','','','','','','',''] while len(row) > j: str[j] = row[j] str[j].rstrip() j = j+1 pdf.cell(9,4,str[0],1,0) pdf.cell(31,4,str[1],1,0) pdf.cell(15,4,str[2],1,0) pdf.cell(30,4,str[3][0:14],1,0) pdf.cell(30,4,str[4][0:14],1,0) pdf.cell(15,4,str[5][0:14],1,0) pdf.cell(15,4,str[6][0:14],1,0) pdf.cell(15,4,str[7],1,0) pdf.cell(6,4,str[8][0:1],1,0) pdf.cell(24,4,str[9],1,1)
def Show_Core_Mem(analyzeThis): vna2mpb3.coremem(analyzeThis[1]+"\\",analyzeThis[0],0)