From da0281eaef53c9beae4a70dc42d43f7321c5ddc8 Mon Sep 17 00:00:00 2001 From: Breno Teixeira Date: Fri, 11 Apr 2014 17:11:48 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20do=20path=20das=20imagens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/casas/reports.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sigi/apps/casas/reports.py b/sigi/apps/casas/reports.py index 58f3edd..483dc3d 100644 --- a/sigi/apps/casas/reports.py +++ b/sigi/apps/casas/reports.py @@ -6,6 +6,8 @@ from geraldo import Report, DetailBand, Label, ObjectValue, ManyElements, \ ReportGroup, ReportBand, landscape, SubReport, BAND_WIDTH,SystemField from sigi.apps.relatorios.reports import ReportDefault +from sigi.settings import STATICFILES_DIRS + from geraldo.graphics import Image @@ -185,11 +187,11 @@ class CasasLegislativasReport(ReportDefault): elements = list(ReportDefault.band_page_header.elements) elements = [ - Image(filename= ReportDefault.band_page_header.BASE_DIR + '/media/images/logo-interlegis.jpg', + Image(filename= '%s/img/logo-interlegis.jpg' % STATICFILES_DIRS, left=23.5*cm,right=1*cm,top=0.1*cm,bottom=1*cm, width=4.2*cm,height=3*cm, ), - Image(filename= ReportDefault.band_page_header.BASE_DIR + '/media/images/logo-senado.png', + Image(filename= '%s/img/logo-senado.png' % STATICFILES_DIRS, left=1*cm,right=1*cm,top=0.1*cm,bottom=1*cm, width=3*cm,height=3*cm, ),