From a8a80669e1196d8d70d131a27e616c02c4cdfdd5 Mon Sep 17 00:00:00 2001 From: "Starlone (Estagiario)" Date: Tue, 6 Jul 2010 20:54:07 +0000 Subject: [PATCH] Alterando endereco das imagens --- sigi/apps/convenios/reports.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sigi/apps/convenios/reports.py b/sigi/apps/convenios/reports.py index 7f03b42..18e6722 100644 --- a/sigi/apps/convenios/reports.py +++ b/sigi/apps/convenios/reports.py @@ -26,12 +26,14 @@ class ReportDefault(Report): class band_page_header(ReportBand): height = 4.2*cm + BASE_DIR = os.path.abspath(os.path.dirname('') + '..') + elements = [ - Image(filename= 'apps/convenios/templates/imagens/logo-interlegis.jpg', + Image(filename= BASE_DIR + '/media/images/logo-interlegis.jpg', left=15.5*cm,right=1*cm,top=0.1*cm,bottom=1*cm, width=4.2*cm,height=3*cm, ), - Image(filename= 'apps/convenios/templates/imagens/logo-senado.png', + Image(filename= BASE_DIR + '/media/images/logo-senado.png', left=1*cm,right=1*cm,top=0.1*cm,bottom=1*cm, width=3*cm,height=3*cm, ),