Ejemplo n.º 1
0
def send_pdf():
	filename = "file.pdf"
	#pdf = create_pdf(render_template('template.html', data=model.getItems()))
 	pdf = create_pdf(render_template('template.html', data=getMarvel()))
 	mailname = request.args.get('mailname')
 	print 'send mail to :'+mailname
 	return SendMail(pdf, filename, mailname)
Ejemplo n.º 2
0
def send_pdf():
    filename = "file.pdf"
    #pdf = create_pdf(render_template('template.html', data=model.getItems()))
    pdf = create_pdf(render_template('template.html', data=getMarvel()))
    mailname = request.args.get('mailname')
    print 'send mail to :' + mailname
    return SendMail(pdf, filename, mailname)
Ejemplo n.º 3
0
def get_xls():
    output = useTemplate(getMarvel())
    filename = "test.xls"
    return genResponse(output, filename)
Ejemplo n.º 4
0
def get_pdf():
    output = create_pdf(render_template('template.html', data=getMarvel()))
    filename = "test.pdf"
    return genResponse(output, filename)
Ejemplo n.º 5
0
def send_xls():
    filename = "file.xls"
    mailname = request.args.get('mailname')
    print 'send mail to :' + mailname
    output = useTemplate(getMarvel())
    return SendMail(output, filename, mailname)
Ejemplo n.º 6
0
def temp():
    print getMarvel()
    return render_template('index.html', data=getMarvel())
Ejemplo n.º 7
0
def get_xls():
	output = useTemplate(getMarvel())
	filename = "test.xls"
	return genResponse(output, filename)
Ejemplo n.º 8
0
def get_pdf():
	output = create_pdf(render_template('template.html', data=getMarvel()))
	filename = "test.pdf"
	return genResponse(output, filename)
Ejemplo n.º 9
0
def send_xls():
	filename = "file.xls"
	mailname = request.args.get('mailname')
	print 'send mail to :'+mailname
	output =  useTemplate(getMarvel())
 	return SendMail(output, filename, mailname)
Ejemplo n.º 10
0
def temp():
	print getMarvel()
 	return render_template('index.html', data=getMarvel())