@ -15,11 +15,13 @@ from sapl.comissoes.models import Participacao
from sapl . crud . base import ( Crud , CrudBaseMixin , CrudCreateView ,
from sapl . crud . base import ( Crud , CrudBaseMixin , CrudCreateView ,
CrudDeleteView , CrudDetailView , CrudListView ,
CrudDeleteView , CrudDetailView , CrudListView ,
CrudUpdateView , MasterDetailCrud , CrudAux ,
CrudUpdateView , MasterDetailCrud , CrudAux ,
RP_CHANGE )
RP_CHANGE , RP_DETAIL , RP_LIST , DeactivatedMixin ,
CrudBaseForListAndDetailExternalAppView )
from sapl . materia . models import Proposicao , Relatoria
from sapl . materia . models import Proposicao , Relatoria
from sapl . parlamentares . apps import AppConfig
from sapl . utils import permissao_tb_aux , permissoes_parlamentares
from sapl . utils import permissao_tb_aux , permissoes_parlamentares
from . forms import ( ComposicaoColigacaoForm , FiliacaoForm , FrenteForm ,
from . forms import ( ComposicaoColigacaoForm , FiliacaoForm ,
LegislaturaForm , ParlamentarCreateForm , ParlamentarForm )
LegislaturaForm , ParlamentarCreateForm , ParlamentarForm )
from . models import ( CargoMesa , Coligacao , ComposicaoColigacao , ComposicaoMesa ,
from . models import ( CargoMesa , Coligacao , ComposicaoColigacao , ComposicaoMesa ,
Dependente , Filiacao , Frente , Legislatura , Mandato ,
Dependente , Filiacao , Frente , Legislatura , Mandato ,
@ -27,92 +29,72 @@ from .models import (CargoMesa, Coligacao, ComposicaoColigacao, ComposicaoMesa,
SituacaoMilitar , TipoAfastamento , TipoDependente )
SituacaoMilitar , TipoAfastamento , TipoDependente )
class FrenteList ( ListView ) :
CargoMesaCrud = CrudAux . build ( CargoMesa , ' cargo_mesa ' )
model = Frente
PartidoCrud = CrudAux . build ( Partido , ' partidos ' )
paginate_by = 10
SessaoLegislativaCrud = CrudAux . build ( SessaoLegislativa , ' sessao_legislativa ' )
template_name = ' parlamentares/frentes.html '
TipoDependenteCrud = CrudAux . build ( TipoDependente , ' tipo_dependente ' )
NivelInstrucaoCrud = CrudAux . build ( NivelInstrucao , ' nivel_instrucao ' )
TipoAfastamentoCrud = CrudAux . build ( TipoAfastamento , ' tipo_afastamento ' )
TipoMilitarCrud = CrudAux . build ( SituacaoMilitar , ' tipo_situa_militar ' )
def get_queryset ( self ) :
FrenteCrud = CrudAux . build ( Frente , ' tipo_situa_militar ' , list_field_names = [
return Frente . objects . filter ( parlamentares__in = [ self . kwargs [ ' pk ' ] ] )
' nome ' , ' data_criacao ' , ' parlamentares ' ] )
def get_context_data ( self , * * kwargs ) :
DependenteCrud = MasterDetailCrud . build (
context = super ( FrenteList , self ) . get_context_data ( * * kwargs )
Dependente , ' parlamentar ' , ' dependente ' )
context [ ' root_pk ' ] = self . kwargs [ ' pk ' ]
context [ ' object_list ' ] = self . get_queryset ( )
return context
class FrenteCrud ( CrudAux ) :
class FrenteList ( MasterDetailCrud ) :
model = Frente
model = Frente
is_m2m = True
parent_field = ' parlamentares '
CreateView , UpdateView , DeleteView = None , None , None
class BaseMixin ( CrudAux . BaseMixin ) :
class BaseMixin ( Crud . PublicMixin , MasterDetailCrud . BaseMixin ) :
list_field_names = [ ' nome ' , ' data_criacao ' , ' parlamentares ' ]
list_field_names = [ ' nome ' , ' data_criacao ' ]
form_class = FrenteForm
@classmethod
def url_name ( cls , suffix ) :
return ' %s _parlamentar_ %s ' % ( cls . model . _meta . model_name , suffix )
class RelatoriaParlamentarCrud ( MasterDetailCrud ) :
class RelatoriaParlamentarCrud ( CrudBaseForListAndDetailExternalAppView ) :
model = Relatoria
model = Relatoria
parent_field = ' parlamentar '
parent_field = ' parlamentar '
help_path = ' relatoria_parlamentar '
class ListView ( MasterDetailCrud . ListView ) :
namespace = AppConfig . name
permission_required = permissoes_parlamentares ( )
class CreateView ( MasterDetailCrud . CreateView ) :
permission_required = permissoes_parlamentares ( )
class UpdateView ( MasterDetailCrud . UpdateView ) :
permission_required = permissoes_parlamentares ( )
class DeleteView ( MasterDetailCrud . DeleteView ) :
permission_required = permissoes_parlamentares ( )
class ProposicaoParlamentarCrud ( MasterDetailCrud ) :
class ProposicaoParlamentarCrud ( CrudBaseForListAndDetailExternalAppView ) :
model = Proposicao
model = Proposicao
parent_field = ' autor__parlamentar '
help_path = ' '
class BaseMixin ( CrudBaseMixin ) :
list_field_names = [ ' tipo ' , ' descricao ' ]
list_field_names = [ ' tipo ' , ' descricao ' ]
parent_field = ' autor__parlamentar '
namespace = AppConfig . name
class ListView ( MasterDetailCrud . ListView ) :
class ListView ( CrudBaseForListAndDetailExternalAppView . ListView ) :
permission_required = permissoes_parlamentares ( )
def get_context_data ( self , * * kwargs ) :
context = super ( ProposicaoParlamentarCrud . ListView , self
) . get_context_data ( * * kwargs )
context [ ' root_pk ' ] = self . kwargs [ ' pk ' ]
return context
def get_queryset ( self ) :
def get_queryset ( self ) :
try :
return super ( ) . get_queryset ( ) . filter (
proposicoes = Proposicao . objects . filter (
autor__parlamentar_id = self . kwargs [ ' pk ' ] ,
autor__parlamentar_id = self . kwargs [ ' pk ' ] ,
data_envio__isnull = False )
data_envio__isnull = False )
except ObjectDoesNotExist :
return [ ]
else :
return proposicoes
class CreateView ( MasterDetailCrud . CreateView ) :
permission_required = permissoes_parlamentares ( )
class UpdateView ( MasterDetailCrud . UpdateView ) :
class ParticipacaoParlamentarCrud ( CrudBaseForListAndDetailExternalAppView ) :
permission_required = permissoes_parlamentares ( )
class DeleteView ( MasterDetailCrud . DeleteView ) :
permission_required = permissoes_parlamentares ( )
class ParticipacaoParlamentarCrud ( MasterDetailCrud ) :
model = Participacao
model = Participacao
parent_field = ' parlamentar '
parent_field = ' parlamentar '
help_path = ' '
namespace = AppConfig . name
list_field_names = [ ' composicao__comissao__nome ' , ' cargo__nome ' , (
' composicao__periodo__data_inicio ' , ' composicao__periodo__data_fim ' ) ]
class ListView ( MasterDetailCrud . ListView ) :
class ListView ( CrudBaseForListAndDetailExternalAppView . ListView ) :
ordering = ( ' -composicao__periodo ' )
ordering = ( ' -composicao__periodo ' )
def get_rows ( self , object_list ) :
def get_rows ( self , object_list ) :
"""
FIXME :
Este metodo não será necessário quando get_rows for refatorada
"""
comissoes = [ ]
comissoes = [ ]
for p in object_list :
for p in object_list :
if p . cargo . nome != ' Relator ' :
if p . cargo . nome != ' Relator ' :
@ -130,214 +112,75 @@ class ParticipacaoParlamentarCrud(MasterDetailCrud):
return comissoes
return comissoes
def get_headers ( self ) :
def get_headers ( self ) :
return [ ' Comissão ' , ' Cargo ' , ' Período ' ]
return [ _ ( ' Comissão ' ) , _ ( ' Cargo ' ) , _ ( ' Período de participação ' ) , ]
class CreateView ( MasterDetailCrud . CreateView ) :
permission_required = permissoes_parlamentares ( )
class UpdateView ( MasterDetailCrud . UpdateView ) :
permission_required = permissoes_parlamentares ( )
class DeleteView ( MasterDetailCrud . DeleteView ) :
permission_required = permissoes_parlamentares ( )
class CargoMesaCrud ( Crud ) :
model = CargoMesa
help_path = ' cargo_mesa '
class BaseMixin ( CrudBaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class PartidoCrud ( Crud ) :
model = Partido
help_path = ' partidos '
class BaseMixin ( CrudBaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class SessaoLegislativaCrud ( Crud ) :
model = SessaoLegislativa
help_path = ' sessao_legislativa '
class BaseMixin ( CrudBaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class TipoDependenteCrud ( Crud ) :
model = TipoDependente
help_path = ' nivel_instrucao '
class BaseMixin ( CrudBaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class NivelInstrucaoCrud ( Crud ) :
model = NivelInstrucao
help_path = ' tipo_dependente '
class BaseMixin ( CrudBaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class TipoAfastamentoCrud ( Crud ) :
model = TipoAfastamento
help_path = ' tipo_afastamento '
class BaseMixin ( CrudBaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class TipoMilitarCrud ( Crud ) :
model = SituacaoMilitar
help_path = ' tipo_situa_militar '
class BaseMixin ( CrudBaseMixin ) :
class ColigacaoCrud ( CrudAux ) :
model = Coligacao
def has_permission ( self ) :
help_path = ' tabelas_auxiliares#coligacao '
return permissao_tb_aux ( self )
class DependenteCrud ( MasterDetailCrud ) :
model = Dependente
parent_field = ' parlamentar '
help_path = ' '
class CreateView ( MasterDetailCrud . CreateView ) :
permission_required = permissoes_parlamentares ( )
class UpdateView ( MasterDetailCrud . UpdateView ) :
permission_required = permissoes_parlamentares ( )
class DeleteView ( MasterDetailCrud . DeleteView ) :
permission_required = permissoes_parlamentares ( )
class ListView ( MasterDetail Crud. ListView ) :
class ListView ( CrudAux . ListView ) :
permission_required = permissoes_parlamentares ( )
ordering = ( ' -numero_votos ' , ' nome ' )
class DetailView ( MasterDetailCrud . DetailView ) :
class BaseMixin ( CrudAux . BaseMixin ) :
permission_required = permissoes_parlamentares ( )
subnav_template_name = ' parlamentares/subnav_coligacao.yaml '
class MandatoCrud ( MasterDetailCrud ) :
class MandatoCrud ( MasterDetailCrud ) :
model = Mandato
model = Mandato
parent_field = ' parlamentar '
parent_field = ' parlamentar '
help_path = ' '
public = [ RP_DETAIL , RP_LIST ]
class ListView ( MasterDetailCrud . ListView ) :
class ListView ( MasterDetailCrud . ListView ) :
ordering = ( ' -legislatura__numero ' )
ordering = ( ' -legislatura__numero ' )
class CreateView ( MasterDetailCrud . CreateView ) :
permission_required = permissoes_parlamentares ( )
class UpdateView ( MasterDetailCrud . UpdateView ) :
permission_required = permissoes_parlamentares ( )
class DeleteView ( MasterDetailCrud . DeleteView ) :
permission_required = permissoes_parlamentares ( )
class ColigacaoCrud ( Crud ) :
model = Coligacao
help_path = ' tabelas_auxiliares#coligacao '
class ListView ( CrudListView ) :
ordering = ( ' -numero_votos ' , ' nome ' )
class BaseMixin ( CrudBaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class ComposicaoColigacaoCrud ( MasterDetailCrud ) :
class ComposicaoColigacaoCrud ( MasterDetailCrud ) :
model = ComposicaoColigacao
model = ComposicaoColigacao
parent_field = ' coligacao '
parent_field = ' coligacao '
help_path = ' '
help_path = ' '
class CreateView ( MasterDetailCrud . CreateView ) :
class BaseMixin ( MasterDetailCrud . BaseMixin ) :
form_class = ComposicaoColigacaoForm
def get_initial ( self ) :
id = self . kwargs [ ' pk ' ]
return { ' coligacao_id ' : id }
class UpdateView ( MasterDetailCrud . UpdateView ) :
form_class = ComposicaoColigacaoForm
def get_initial ( self ) :
def get_context_data ( self , * * kwargs ) :
id = self . kwargs [ ' pk ' ]
context = super ( ) . get_context_data ( )
return { ' coligacao_id ' : id }
context [ ' subnav_template_name ' ] = \
' parlamentares/subnav_coligacao.yaml '
return context
class ListView ( MasterDetailCrud . ListView ) :
class ListView ( MasterDetailCrud . ListView ) :
ordering = ' -partido__sigla '
ordering = ' -partido__sigla '
class BaseMixin ( MasterDetailCrud . BaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class LegislaturaCrud ( CrudAux ) :
class LegislaturaCrud ( Crud ) :
model = Legislatura
model = Legislatura
help_path = ' tabelas_auxiliares#legislatura '
help_path = ' tabelas_auxiliares#legislatura '
class CreateView ( CrudCreateView ) :
class BaseMixin ( CrudAux . BaseMixin ) :
form_class = LegislaturaForm
class UpdateView ( CrudUpdateView ) :
form_class = LegislaturaForm
form_class = LegislaturaForm
class BaseMixin ( CrudBaseMixin ) :
def has_permission ( self ) :
return permissao_tb_aux ( self )
class FiliacaoCrud ( MasterDetailCrud ) :
class FiliacaoCrud ( MasterDetailCrud ) :
model = Filiacao
model = Filiacao
parent_field = ' parlamentar '
parent_field = ' parlamentar '
help_path = ' '
help_path = ' '
public = [ RP_LIST , RP_DETAIL ]
class CreateView ( MasterDetailCrud . CreateView ) :
class BaseMixin ( MasterDetailCrud . BaseMixin ) :
form_class = FiliacaoForm
permission_required = permissoes_parlamentares ( )
class UpdateView ( MasterDetailCrud . UpdateView ) :
form_class = FiliacaoForm
permission_required = permissoes_parlamentares ( )
class DeleteView ( MasterDetailCrud . DeleteView ) :
permission_required = permissoes_parlamentares ( )
class ListView ( MasterDetailCrud . ListView ) :
ordering = ' -data '
ordering = ' -data '
class ParlamentarCrud ( Crud ) :
class ParlamentarCrud ( Crud ) :
model = Parlamentar
model = Parlamentar
public = [ RP_LIST , RP_DETAIL ]
class BaseMixin ( Crud . BaseMixin ) :
class BaseMixin ( Crud . BaseMixin ) :
form_class = ParlamentarCreateForm
form_class = ParlamentarCreateForm
ordered_list = False
list_field_names = [
list_field_names = [
' avatar_html ' , ' nome_parlamentar ' , ' filiacao_atual ' , ' ativo ' ]
' avatar_html ' , ' nome_parlamentar ' , ' filiacao_atual ' , ' ativo ' ]
class DetailView ( Crud . DetailView ) :
class DetailView ( Crud . DetailView ) :
permission_required = [ ]
def get_template_names ( self ) :
def get_template_names ( self ) :
return [ ' crud/detail.html ' ] \
return [ ' crud/detail.html ' ] \
@ -353,8 +196,16 @@ class ParlamentarCrud(Crud):
def layout_key ( self ) :
def layout_key ( self ) :
return ' ParlamentarCreate '
return ' ParlamentarCreate '
def form_valid ( self , form ) :
'''
Reimplementa form_valid devido ao save de ParlamentarCreateForm
ser específico , sendo necessário isolar padrão do crud que aciona
form . save ( commit = False ) para registrar dados de auditoria se
o model implementá - los , bem como de container se também implement .
'''
return super ( Crud . CreateView , self ) . form_valid ( form )
class ListView ( Crud . ListView ) :
class ListView ( Crud . ListView ) :
permission_required = [ ]
template_name = " parlamentares/parlamentares_list.html "
template_name = " parlamentares/parlamentares_list.html "
paginate_by = None
paginate_by = None
@ -394,19 +245,8 @@ class ParlamentarCrud(Crud):
return context
return context
def check_permission_mesa ( request ) :
lista_permissoes = [ ]
cts = ContentType . objects . filter ( app_label = ' parlamentares ' )
cts = cts . filter ( model__icontains = ' mesa ' )
perms = list ( Permission . objects . filter ( content_type__in = cts ) )
for p in perms :
lista_permissoes . append ( ' parlamentares. ' + p . codename )
return request . user . has_perms ( set ( lista_permissoes ) )
class MesaDiretoraView ( FormView ) :
class MesaDiretoraView ( FormView ) :
template_name = " mesa_diretora/mesa_diretora.html "
template_name = ' parlamentares/composicaomesa_form.html '
success_url = reverse_lazy ( ' sapl.parlamentares:mesa_diretora ' )
success_url = reverse_lazy ( ' sapl.parlamentares:mesa_diretora ' )
# Essa função avisa quando se pode compor uma Mesa Legislativa
# Essa função avisa quando se pode compor uma Mesa Legislativa
@ -425,18 +265,18 @@ class MesaDiretoraView(FormView):
def get ( self , request , * args , * * kwargs ) :
def get ( self , request , * args , * * kwargs ) :
if ( not Legislatura . objects . exists ( ) or
if ( not Legislatura . objects . exists ( ) or
not SessaoLegislativa . objects . all ( ) ) :
not SessaoLegislativa . objects . exists ( ) ) :
return self . validation ( request )
return self . validation ( request )
mesa = SessaoLegislativa . objects . filter (
mesa = SessaoLegislativa . objects . filter (
legislatura = Legislatura . objects . la st( ) ) . first (
legislatura = Legislatura . objects . fir st( ) ) . first (
) . composicaomesa_set . all ( )
) . composicaomesa_set . all ( )
cargos_ocupados = [ m . cargo for m in mesa ]
cargos_ocupados = [ m . cargo for m in mesa ]
cargos = CargoMesa . objects . all ( )
cargos = CargoMesa . objects . all ( )
cargos_vagos = list ( set ( cargos ) - set ( cargos_ocupados ) )
cargos_vagos = list ( set ( cargos ) - set ( cargos_ocupados ) )
parlamentares = Legislatura . objects . la st( ) . mandato_set . all ( )
parlamentares = Legislatura . objects . fir st( ) . mandato_set . all ( )
parlamentares_ocupados = [ m . parlamentar for m in mesa ]
parlamentares_ocupados = [ m . parlamentar for m in mesa ]
parlamentares_vagos = list (
parlamentares_vagos = list (
set (
set (
@ -446,23 +286,26 @@ class MesaDiretoraView(FormView):
return self . render_to_response (
return self . render_to_response (
{ ' legislaturas ' : Legislatura . objects . all (
{ ' legislaturas ' : Legislatura . objects . all (
) . order_by ( ' -numero ' ) ,
) . order_by ( ' -numero ' ) ,
' legislatura_selecionada ' : Legislatura . objects . la st( ) ,
' legislatura_selecionada ' : Legislatura . objects . fir st( ) ,
' sessoes ' : SessaoLegislativa . objects . filter (
' sessoes ' : SessaoLegislativa . objects . filter (
legislatura = Legislatura . objects . la st( ) ) ,
legislatura = Legislatura . objects . fir st( ) ) ,
' sessao_selecionada ' : SessaoLegislativa . objects . filter (
' sessao_selecionada ' : SessaoLegislativa . objects . filter (
legislatura = Legislatura . objects . la st( ) ) . first ( ) ,
legislatura = Legislatura . objects . fir st( ) ) . first ( ) ,
' composicao_mesa ' : mesa ,
' composicao_mesa ' : mesa ,
' parlamentares ' : parlamentares_vagos ,
' parlamentares ' : parlamentares_vagos ,
' cargos_vagos ' : cargos_vagos
' cargos_vagos ' : cargos_vagos
} )
} )
def post ( self , request , * args , * * kwargs ) :
def post ( self , request , * args , * * kwargs ) :
if ' Incluir ' in request . POST and check_permission_mesa ( request ) :
if ( not Legislatura . objects . all ( ) or
if ( not Legislatura . objects . exists ( ) or
not SessaoLegislativa . objects . all ( ) ) :
not SessaoLegislativa . objects . exists ( ) ) :
return self . validation ( request )
return self . validation ( request )
if ' Incluir ' in request . POST and request . user . has_perm (
' %s .add_ %s ' % (
AppConfig . label , ComposicaoMesa . _meta . model_name ) ) :
composicao = ComposicaoMesa ( )
composicao = ComposicaoMesa ( )
composicao . sessao_legislativa = SessaoLegislativa . objects . get (
composicao . sessao_legislativa = SessaoLegislativa . objects . get (
id = int ( request . POST [ ' sessao ' ] ) )
id = int ( request . POST [ ' sessao ' ] ) )
@ -472,13 +315,12 @@ class MesaDiretoraView(FormView):
id = int ( request . POST [ ' cargo ' ] ) )
id = int ( request . POST [ ' cargo ' ] ) )
composicao . save ( )
composicao . save ( )
return redirect ( ' sapl.parlamentares:mesa_diretora ' )
messages . success ( request , _ (
' Parlamentar adicionado com sucesso! ' ) )
elif ' Excluir ' in request . POST and check_permission_mesa ( request ) :
if ( not Legislatura . objects . all ( ) or
elif ' Excluir ' in request . POST and request . user . has_perm (
not SessaoLegislativa . objects . all ( ) ) :
' %s .delete_ %s ' % (
return self . validation ( request )
AppConfig . label , ComposicaoMesa . _meta . model_name ) ) :
if ' composicao_mesa ' in request . POST :
if ' composicao_mesa ' in request . POST :
ids = request . POST [ ' composicao_mesa ' ] . split ( ' : ' )
ids = request . POST [ ' composicao_mesa ' ] . split ( ' : ' )
@ -488,8 +330,12 @@ class MesaDiretoraView(FormView):
cargo_id = int ( ids [ 1 ] )
cargo_id = int ( ids [ 1 ] )
)
)
composicao . delete ( )
composicao . delete ( )
return redirect ( ' sapl.parlamentares:mesa_diretora ' )
messages . success ( request , _ (
' Parlamentar excluido com sucesso! ' ) )
else :
else :
messages . error ( request , _ (
' Selecione um parlamentar para ser excluido! ' ) )
mesa = ComposicaoMesa . objects . filter (
mesa = ComposicaoMesa . objects . filter (
sessao_legislativa = request . POST [ ' sessao ' ] )
sessao_legislativa = request . POST [ ' sessao ' ] )
@ -504,6 +350,13 @@ class MesaDiretoraView(FormView):
set (
set (
[ p . parlamentar for p in parlamentares ] ) - set (
[ p . parlamentar for p in parlamentares ] ) - set (
parlamentares_ocupados ) )
parlamentares_ocupados ) )
sessao_selecionada = SessaoLegislativa . objects . get (
id = int ( request . POST [ ' sessao ' ] ) )
if str ( sessao_selecionada . legislatura_id ) != int (
request . POST [ ' legislatura ' ] ) :
sessao_selecionada = SessaoLegislativa . objects . filter (
legislatura = Legislatura . objects . first ( ) ) . first ( )
return self . render_to_response (
return self . render_to_response (
{ ' legislaturas ' : Legislatura . objects . all (
{ ' legislaturas ' : Legislatura . objects . all (
) . order_by ( ' -numero ' ) ,
) . order_by ( ' -numero ' ) ,
@ -511,8 +364,7 @@ class MesaDiretoraView(FormView):
id = int ( request . POST [ ' legislatura ' ] ) ) ,
id = int ( request . POST [ ' legislatura ' ] ) ) ,
' sessoes ' : SessaoLegislativa . objects . filter (
' sessoes ' : SessaoLegislativa . objects . filter (
legislatura_id = int ( request . POST [ ' legislatura ' ] ) ) ,
legislatura_id = int ( request . POST [ ' legislatura ' ] ) ) ,
' sessao_selecionada ' : SessaoLegislativa . objects . get (
' sessao_selecionada ' : sessao_selecionada ,
id = int ( request . POST [ ' sessao ' ] ) ) ,
' composicao_mesa ' : mesa ,
' composicao_mesa ' : mesa ,
' parlamentares ' : parlamentares_vagos ,
' parlamentares ' : parlamentares_vagos ,
' cargos_vagos ' : cargos_vagos
' cargos_vagos ' : cargos_vagos