-
-

-
Matérias
Legislativas
-
-
- Têm início com o processo de criação de leis e a apresentação de projetos no Poder Legislativo. Na apreciação de matérias, podem haver eventuais conflitos de interpretação ou de entendimento entre o que estabelece o Regimento Interno da Casa e a Lei Orgânica do Município. Nestes casos, prevalece a Lei Orgânica.
-
+
+
+
+

+
+
Matérias Legislativas
+
+
+
+

+
Matérias
Legislativas
+
+
+ Têm início com o processo de criação de leis e a apresentação de projetos no Poder Legislativo. Na
+ apreciação de matérias, podem haver eventuais conflitos de interpretação ou de entendimento entre o
+ que
+ estabelece o Regimento Interno da Casa e a Lei Orgânica do Município. Nestes casos, prevalece a Lei
+ Orgânica.
+
+
+
-
-
-
-
-

-
-
Normas Jurídicas
-
-
-
-

+
+
+
+

+
Normas Jurídicas
-
- Nos Municípios, referem-se às emendas à Lei Orgânica, às leis complementares, às leis ordinárias, aos decretos legislativos e às resoluções.
-
-
-
-
-
-
-
-
-

+
+
+

+
Normas Jurídicas
+
+
+ Nos Municípios, referem-se às emendas à Lei Orgânica, às leis complementares, às leis ordinárias,
+ aos
+ decretos legislativos e às resoluções.
+
-
Relatórios
+
-
-
-

+
+
+
+
+

+
Relatórios
-
- Contém informações estatísticas sobre a produção legislativa dos parlamentares e da Casa, dispostas e agrupadas de diferentes formas de acordo com parâmetros fornecidos.
-
+
+
+

+
Relatórios
+
+
+ Contém informações estatísticas sobre a produção legislativa dos parlamentares e da Casa, dispostas
+ e
+ agrupadas de diferentes formas de acordo com parâmetros fornecidos.
+
+
+
-
-
-
+
-{% endblock %}
+{% endblock %}
\ No newline at end of file
From cdc18d079408b85bfc50bc5b4ef8d43e323ed7de Mon Sep 17 00:00:00 2001
From: Edward
Date: Thu, 4 Oct 2018 16:23:00 -0300
Subject: [PATCH 05/13] =?UTF-8?q?Ajusta=20footer=20com=20vers=C3=A3o?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sapl/templates/base.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sapl/templates/base.html b/sapl/templates/base.html
index ae84f0164..1953032a3 100644
--- a/sapl/templates/base.html
+++ b/sapl/templates/base.html
@@ -184,7 +184,7 @@
Desenvolvido pelo Interlegis em software livre e aberto.
- release: 3.1.122
+ Release: 3.1.121
From 563d3db75dcbd6f2b59b062702bc24dc02cf61f3 Mon Sep 17 00:00:00 2001
From: Victor Fabre
Date: Fri, 5 Oct 2018 11:07:20 -0300
Subject: [PATCH 06/13] Fix #2282 (#2283)
---
sapl/parlamentares/forms.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sapl/parlamentares/forms.py b/sapl/parlamentares/forms.py
index 207bc2bc7..6ae314785 100644
--- a/sapl/parlamentares/forms.py
+++ b/sapl/parlamentares/forms.py
@@ -142,7 +142,7 @@ class LegislaturaForm(ModelForm):
pk = self.instance.pk
- ultima_legislatura = Legislatura.objects.filter(data_inicio__lte=data_inicio
+ ultima_legislatura = Legislatura.objects.filter(data_inicio__lt=data_inicio
).order_by('-data_inicio').first()
proxima_legislatura = Legislatura.objects.filter(data_fim__gt=data_fim
).order_by('data_fim').first()
From 86e5bda7d6fb1c43f643978898379f567ca6b267 Mon Sep 17 00:00:00 2001
From: Victor Fabre
Date: Fri, 5 Oct 2018 11:07:43 -0300
Subject: [PATCH 07/13] Fix #2279 (#2280)
---
.../migrations/0010_auto_20181004_1939.py | 20 +++++++++++++++++++
sapl/compilacao/models.py | 3 ++-
2 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 sapl/compilacao/migrations/0010_auto_20181004_1939.py
diff --git a/sapl/compilacao/migrations/0010_auto_20181004_1939.py b/sapl/compilacao/migrations/0010_auto_20181004_1939.py
new file mode 100644
index 000000000..76b2de609
--- /dev/null
+++ b/sapl/compilacao/migrations/0010_auto_20181004_1939.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.13 on 2018-10-04 22:39
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('compilacao', '0009_auto_20180926_1015'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='textoarticulado',
+ name='numero',
+ field=models.CharField(max_length=8, verbose_name='Número'),
+ ),
+ ]
diff --git a/sapl/compilacao/models.py b/sapl/compilacao/models.py
index efb834c51..3d5b7a679 100644
--- a/sapl/compilacao/models.py
+++ b/sapl/compilacao/models.py
@@ -186,7 +186,8 @@ class TextoArticulado(TimestampedMixin):
data = models.DateField(blank=True, null=True, verbose_name=_('Data'))
ementa = models.TextField(verbose_name=_('Ementa'))
observacao = models.TextField(blank=True, verbose_name=_('Observação'))
- numero = models.PositiveIntegerField(verbose_name=_('Número'))
+ numero = models.CharField(
+ max_length=8,verbose_name=_('Número'))
ano = models.PositiveSmallIntegerField(verbose_name=_('Ano'))
tipo_ta = models.ForeignKey(
TipoTextoArticulado,
From 7ca93743d36a659f6af9560149f39f0e3567f589 Mon Sep 17 00:00:00 2001
From: Leandro Roberto
Date: Fri, 5 Oct 2018 11:07:07 -0300
Subject: [PATCH 08/13] ajuste de front-end
---
sapl/static/styles/app.scss | 26 ++++++++++++++-----
sapl/templates/comissoes/composicao_list.html | 4 ++-
sapl/templates/crud/detail_detail.html | 20 ++++++++------
3 files changed, 34 insertions(+), 16 deletions(-)
diff --git a/sapl/static/styles/app.scss b/sapl/static/styles/app.scss
index f8980133e..099392fde 100644
--- a/sapl/static/styles/app.scss
+++ b/sapl/static/styles/app.scss
@@ -4,10 +4,13 @@
@import "home_index";
-html, body {
+html {
position: relative;
min-height: 100%;
}
+body {
+ margin-bottom: 160px;
+}
h1, h2, h3, h4, h5, h6, form, dl, dt, dd, p, div, img, a {
margin: 0;
@@ -364,6 +367,9 @@ nav {
background: #364347;
color: white;
text-align: center;
+ position: absolute;
+ width: 100%;
+ bottom: 0px;
p {
color: white;
margin-top: 10px;
@@ -406,6 +412,12 @@ nav {
}
@media (max-width: 991px) {
+ body {
+ margin: 0;
+ }
+ .footer {
+ position: relative;
+ }
.caret {
margin-left: 1px;
}
@@ -413,12 +425,6 @@ nav {
padding-left: 4px;
padding-right: 4px;
}
- .table{
- width: auto;
- white-space: normal;
- display:block;
- overflow-x: auto;
- }
}
@media (max-width: 767px) {
@@ -448,6 +454,12 @@ nav {
}
}
}
+ .table{
+ width: auto;
+ white-space: normal;
+ display:block;
+ overflow-x: auto;
+ }
}
@media (min-width: 1092px) and (max-width: 1199px) {
diff --git a/sapl/templates/comissoes/composicao_list.html b/sapl/templates/comissoes/composicao_list.html
index 29071c85d..3f543b0c5 100644
--- a/sapl/templates/comissoes/composicao_list.html
+++ b/sapl/templates/comissoes/composicao_list.html
@@ -37,7 +37,9 @@
{% endif %}
-
+
+
+
diff --git a/sapl/templates/crud/detail_detail.html b/sapl/templates/crud/detail_detail.html
index b2312ec51..bddb962f0 100644
--- a/sapl/templates/crud/detail_detail.html
+++ b/sapl/templates/crud/detail_detail.html
@@ -63,14 +63,18 @@
{% endfor %}
{% endfor %}
{% endblock detail_content %}
-
+
+
+
+
+
{% if not rows %}
{{ NO_ENTRIES_MSG }}
From 79dfe5f68210f0eaa99eb57871a96d60e763bfa7 Mon Sep 17 00:00:00 2001
From: Victor Fabre
Date: Fri, 5 Oct 2018 12:25:11 -0300
Subject: [PATCH 09/13] Fix #2284 (#2285)
---
sapl/sessao/forms.py | 3 ++-
sapl/sessao/tests/test_sessao.py | 12 ++++++------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/sapl/sessao/forms.py b/sapl/sessao/forms.py
index f7308f62e..5d36ba99a 100644
--- a/sapl/sessao/forms.py
+++ b/sapl/sessao/forms.py
@@ -86,7 +86,8 @@ class SessaoPlenariaForm(ModelForm):
sessoes = SessaoPlenaria.objects.filter(numero=num,
sessao_legislativa=sl,
legislatura=leg,
- tipo=tipo).\
+ tipo=tipo,
+ data_inicio__year=abertura.year).\
values_list('id', flat=True)
qtd_sessoes = len(sessoes)
diff --git a/sapl/sessao/tests/test_sessao.py b/sapl/sessao/tests/test_sessao.py
index 1715cd0ae..c1af4fc7e 100644
--- a/sapl/sessao/tests/test_sessao.py
+++ b/sapl/sessao/tests/test_sessao.py
@@ -51,17 +51,17 @@ def test_numero_duplicado_sessao_plenaria_form():
legislatura = mommy.make(Legislatura)
sessao = mommy.make(SessaoLegislativa)
tipo = mommy.make(TipoSessaoPlenaria)
- mommy.make(SessaoPlenaria,
- legislatura=legislatura,
- sessao_legislativa=sessao,
- tipo=tipo,
- numero=1)
+ sessao_plenaria = mommy.make(SessaoPlenaria,
+ legislatura=legislatura,
+ sessao_legislativa=sessao,
+ tipo=tipo,
+ numero=1)
form = forms.SessaoPlenariaForm(data={'legislatura': str(legislatura.pk),
'numero': '1',
'tipo': str(tipo.pk),
'sessao_legislativa': str(sessao.pk),
- 'data_inicio': '10/11/2017',
+ 'data_inicio': sessao_plenaria.data_inicio,
'hora_inicio': '10:10'
})
From 76f4771895e7e6000884fc5fce4f0df2dfc05468 Mon Sep 17 00:00:00 2001
From: Edward
Date: Fri, 5 Oct 2018 15:36:25 -0300
Subject: [PATCH 10/13] Fixes #2288 (#2289)
---
sapl/relatorios/templates/pdf_pauta_sessao_gerar.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/sapl/relatorios/templates/pdf_pauta_sessao_gerar.py b/sapl/relatorios/templates/pdf_pauta_sessao_gerar.py
index 31636401e..f1a827e35 100755
--- a/sapl/relatorios/templates/pdf_pauta_sessao_gerar.py
+++ b/sapl/relatorios/templates/pdf_pauta_sessao_gerar.py
@@ -21,6 +21,7 @@ def cabecalho(inf_basicas_dic, imagem):
tmp += '\t\t\t\t\n'
tmp += '\t\t\t\tSistema de Apoio ao Processo Legislativo\n'
tmp += '\t\t\t\t\n'
+ import ipdb; ipdb.set_trace()
tmp += '\t\t\t\tPauta da ' + str(inf_basicas_dic['num_sessao_plen']) + 'ª Reunião ' + str(inf_basicas_dic['nom_sessao']) + ' da ' + str(
inf_basicas_dic['num_sessao_leg']) + 'ª Sessão Legislativa da \n'
tmp += '\t\t\t\t' + \
From 9144e1786ec8e1027e6ce4fcee8bbc89c40f57fb Mon Sep 17 00:00:00 2001
From: Edward Ribeiro
Date: Fri, 5 Oct 2018 15:39:41 -0300
Subject: [PATCH 11/13] HOT-FIX: conserta commit #76f477
---
sapl/relatorios/templates/pdf_pauta_sessao_gerar.py | 1 -
sapl/relatorios/views.py | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/sapl/relatorios/templates/pdf_pauta_sessao_gerar.py b/sapl/relatorios/templates/pdf_pauta_sessao_gerar.py
index f1a827e35..31636401e 100755
--- a/sapl/relatorios/templates/pdf_pauta_sessao_gerar.py
+++ b/sapl/relatorios/templates/pdf_pauta_sessao_gerar.py
@@ -21,7 +21,6 @@ def cabecalho(inf_basicas_dic, imagem):
tmp += '\t\t\t\t\n'
tmp += '\t\t\t\tSistema de Apoio ao Processo Legislativo\n'
tmp += '\t\t\t\t\n'
- import ipdb; ipdb.set_trace()
tmp += '\t\t\t\tPauta da ' + str(inf_basicas_dic['num_sessao_plen']) + 'ª Reunião ' + str(inf_basicas_dic['nom_sessao']) + ' da ' + str(
inf_basicas_dic['num_sessao_leg']) + 'ª Sessão Legislativa da \n'
tmp += '\t\t\t\t' + \
diff --git a/sapl/relatorios/views.py b/sapl/relatorios/views.py
index 1bc62befa..4d273b6da 100644
--- a/sapl/relatorios/views.py
+++ b/sapl/relatorios/views.py
@@ -1019,7 +1019,7 @@ def get_pauta_sessao(sessao, casa):
inf_basicas_dic["nom_sessao"] = sessao.tipo.nome
inf_basicas_dic["num_sessao_plen"] = sessao.numero
inf_basicas_dic["num_legislatura"] = sessao.legislatura
- inf_basicas_dic["num_sessao_leg"] = sessao.legislatura
+ inf_basicas_dic["num_sessao_leg"] = sessao.sessao_legislativa.numero
inf_basicas_dic["dat_inicio_sessao"] = sessao.data_inicio
inf_basicas_dic["hr_inicio_sessao"] = sessao.hora_inicio
inf_basicas_dic["dat_fim_sessao"] = sessao.data_fim
From 9172e98c45ecb2da20c455ce68290830445f2c85 Mon Sep 17 00:00:00 2001
From: Talitha Pumar
Date: Fri, 5 Oct 2018 15:45:48 -0300
Subject: [PATCH 12/13] Fix #2286 (#2287)
* Fix #2286
* more pythonic
---
sapl/materia/forms.py | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py
index 77ccca5d6..6f6a544cd 100644
--- a/sapl/materia/forms.py
+++ b/sapl/materia/forms.py
@@ -245,7 +245,7 @@ class MateriaLegislativaForm(ModelForm):
primeiro_autor = True
else:
primeiro_autor = False
-
+
materia = super(MateriaLegislativaForm, self).save(commit)
materia.save()
@@ -281,6 +281,20 @@ class UnidadeTramitacaoForm(ModelForm):
raise ValidationError(msg)
return cleaned_data
+ def save(self, commit=False):
+ unidade = super(UnidadeTramitacaoForm, self).save(commit)
+ cd = self.cleaned_data
+
+ if not cd.get('orgao'):
+ unidade.orgao = None
+ if not cd.get('parlamentar'):
+ unidade.parlamentar = None
+ if not cd.get('comissao'):
+ unidade.comissao = None
+
+ unidade.save()
+ return unidade
+
class AcompanhamentoMateriaForm(ModelForm):
From ae8adafa96a8db4fe98d94f9473087cd5fc012f9 Mon Sep 17 00:00:00 2001
From: Edward Ribeiro
Date: Fri, 5 Oct 2018 17:27:49 -0300
Subject: [PATCH 13/13] Release: 3.1.122
---
docker-compose.yml | 2 +-
setup.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index b559eff7e..1bfcf65f5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -11,7 +11,7 @@ sapldb:
ports:
- "5432:5432"
sapl:
- image: interlegis/sapl:3.1.121
+ image: interlegis/sapl:3.1.122
restart: always
environment:
ADMIN_PASSWORD: interlegis
diff --git a/setup.py b/setup.py
index e31740a2b..fac072615 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ install_requires = [
]
setup(
name='interlegis-sapl',
- version='3.1.121',
+ version='3.1.122',
packages=find_packages(),
include_package_data=True,
license='GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007',