From d95b5674232b908ffecfcd0a804640c612a8ea62 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Thu, 25 Aug 2016 15:53:15 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20caminho=20de=20logo=20padr=C3=A3o=20no=20?= =?UTF-8?q?relatorio=20de=20pauta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/relatorios/templates/pdf_sessao_plenaria_gerar.py | 4 ++-- sapl/relatorios/views.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sapl/relatorios/templates/pdf_sessao_plenaria_gerar.py b/sapl/relatorios/templates/pdf_sessao_plenaria_gerar.py index 54cf0be69..3dcb87cee 100644 --- a/sapl/relatorios/templates/pdf_sessao_plenaria_gerar.py +++ b/sapl/relatorios/templates/pdf_sessao_plenaria_gerar.py @@ -13,8 +13,8 @@ def cabecalho(inf_basicas_dic, imagem): """ """ tmp = '' - # tmp += '\t\t\t\t\n' + tmp += '\t\t\t\t\n' tmp += '\t\t\t\t2cm 25.4cm 19cm 25.4cm\n' tmp += '\t\t\t\t\n' tmp += '\t\t\t\t' + \ diff --git a/sapl/relatorios/views.py b/sapl/relatorios/views.py index 72dbd9797..69fad9d7d 100644 --- a/sapl/relatorios/views.py +++ b/sapl/relatorios/views.py @@ -16,6 +16,7 @@ from sapl.sessao.models import (ExpedienteMateria, ExpedienteSessao, Orador, OradorExpediente, OrdemDia, PresencaOrdemDia, RegistroVotacao, SessaoPlenaria, SessaoPlenariaPresenca, TipoExpediente) +from sapl.settings import STATIC_ROOT from sapl.utils import UF from .templates import (pdf_capa_processo_gerar, @@ -49,12 +50,11 @@ def get_cabecalho(casa): def get_imagem(casa): - if casa.logotipo: return casa.logotipo.path else: # TODO: recuperar de uma variavel de sistema - return 'static/img/brasao_transp.gif' + return STATIC_ROOT + '/img/brasao_transp.gif' def get_rodape(casa):