Ejemplo n.º 1
0
def tacpdf(name,author,path,gang):
        if not os.path.isfile(path+name+'tac.pdf'):
                pdf=PDF('P')
                pdf.name=name
                pdf.author=author
                pdf.alias_nb_pages()
                pdf.add_page('P')
                pdfGen.coversheet2(pdf)
                
                pdfGen.stats(pdf,name,path,gang)
                pdf.add_page('P')
                pdfGen.ecosystem(pdf,name,path,gang)
                pdf.add_page('P')
                pdfGen.coreAndAss(pdf,name,path,gang)
                pdf.add_page('P')
                #pdfGen.seedSet(pdf,name,path,gang)
                #pdf.add_page('P')
                pdfGen.subGroups2(pdf,name,path,gang)
		pdf.output(path+name+'tac.pdf','F')
Ejemplo n.º 2
0
def generate(name, author, path, gang): #name - name of fac or gang, gang: 1 = gang, 0 = faction
        if not os.path.isfile(path+name+'.pdf'):
                pdf=PDF('P')
                pdf.name = name
                pdf.author = author
                pdf.alias_nb_pages()
                pdf.add_page()
                pdfGen.coversheet(pdf)
                pdf.add_page()
                pdfGen.stats(pdf,name,path,gang)
                pdf.add_page('P')
                pdfGen.fullNetwork(pdf,name,path,gang)
                pdf.add_page('P')
                pdfGen.coreAndAss(pdf,name,path,gang)
                #pdf.add_page('P')
                #pdfGen.seedSet(pdf,name,path,gang)
                pdf.add_page('P')
        	pdfGen.ecosystem(pdf,name,path,gang)
                pdf.add_page('P')
                pdfGen.connectingMem(pdf,name,path,gang)
                pdfGen.subGroups(pdf,name,path,gang)
                pdf.output(path+name+'.pdf','F')