|
|
@ -6,6 +6,8 @@ |
|
|
""" |
|
|
""" |
|
|
import time |
|
|
import time |
|
|
|
|
|
|
|
|
|
|
|
from sapl.sessao.models import ResumoOrdenacao |
|
|
|
|
|
|
|
|
from trml2pdf import parseString |
|
|
from trml2pdf import parseString |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -287,6 +289,33 @@ def principal(cabecalho_dic, rodape_dic, imagem, sessao, inf_basicas_dic, lst_me |
|
|
tmp += '\t</template>\n' |
|
|
tmp += '\t</template>\n' |
|
|
tmp += paraStyle() |
|
|
tmp += paraStyle() |
|
|
tmp += '\t<story>\n' |
|
|
tmp += '\t<story>\n' |
|
|
|
|
|
|
|
|
|
|
|
ordenacao = ResumoOrdenacao.objects.first() |
|
|
|
|
|
dict_ord_template = { |
|
|
|
|
|
'cont_mult': '', |
|
|
|
|
|
'exp': expedientes(lst_expedientes), |
|
|
|
|
|
'id_basica': inf_basicas(inf_basicas_dic), |
|
|
|
|
|
'lista_p': presenca(lst_presenca_sessao), |
|
|
|
|
|
'lista_p_o_d': presenca_ordem_dia(lst_presenca_ordem_dia), |
|
|
|
|
|
'mat_exp': expediente_materia(lst_expediente_materia), |
|
|
|
|
|
'mat_o_d': votacao(lst_votacao), |
|
|
|
|
|
'mesa_d': mesa(lst_mesa), |
|
|
|
|
|
'oradores_exped': oradores_expediente(lst_oradores_expediente), |
|
|
|
|
|
'oradores_expli': oradores(lst_oradores) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ordenacao: |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.primeiro] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.segundo] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.terceiro] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.quarto] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.quinto] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.sexto] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.setimo] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.oitavo] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.nono] |
|
|
|
|
|
tmp += dict_ord_template[ordenacao.decimo] |
|
|
|
|
|
else: |
|
|
tmp += inf_basicas(inf_basicas_dic) |
|
|
tmp += inf_basicas(inf_basicas_dic) |
|
|
tmp += mesa(lst_mesa) |
|
|
tmp += mesa(lst_mesa) |
|
|
tmp += presenca(lst_presenca_sessao) |
|
|
tmp += presenca(lst_presenca_sessao) |
|
|
@ -296,6 +325,7 @@ def principal(cabecalho_dic, rodape_dic, imagem, sessao, inf_basicas_dic, lst_me |
|
|
tmp += presenca_ordem_dia(lst_presenca_ordem_dia) |
|
|
tmp += presenca_ordem_dia(lst_presenca_ordem_dia) |
|
|
tmp += votacao(lst_votacao) |
|
|
tmp += votacao(lst_votacao) |
|
|
tmp += oradores(lst_oradores) |
|
|
tmp += oradores(lst_oradores) |
|
|
|
|
|
|
|
|
tmp += '\t</story>\n' |
|
|
tmp += '\t</story>\n' |
|
|
tmp += '</document>\n' |
|
|
tmp += '</document>\n' |
|
|
|
|
|
|
|
|
|