|
@ -2,8 +2,6 @@ from django.core.urlresolvers import NoReverseMatch, reverse |
|
|
from django.views.generic import RedirectView |
|
|
from django.views.generic import RedirectView |
|
|
|
|
|
|
|
|
from sapl.base.apps import AppConfig as atasConfig |
|
|
from sapl.base.apps import AppConfig as atasConfig |
|
|
from sapl.base.apps import AppConfig as presenca_sessaoConfig |
|
|
|
|
|
from sapl.base.apps import AppConfig as relatoriosConfig |
|
|
|
|
|
from sapl.comissoes.apps import AppConfig as comissoesConfig |
|
|
from sapl.comissoes.apps import AppConfig as comissoesConfig |
|
|
from sapl.materia.apps import AppConfig as materiaConfig |
|
|
from sapl.materia.apps import AppConfig as materiaConfig |
|
|
from sapl.norma.apps import AppConfig as normaConfig |
|
|
from sapl.norma.apps import AppConfig as normaConfig |
|
@ -14,6 +12,8 @@ from .exceptions import UnknownUrlNameError |
|
|
|
|
|
|
|
|
EMPTY_STRING = '' |
|
|
EMPTY_STRING = '' |
|
|
|
|
|
|
|
|
|
|
|
presenca_sessaoConfig = relatoriosConfig = atasConfig |
|
|
|
|
|
|
|
|
app_parlamentares = parlamentaresConfig.name |
|
|
app_parlamentares = parlamentaresConfig.name |
|
|
app_atas = atasConfig.name |
|
|
app_atas = atasConfig.name |
|
|
app_presenca_sessao = presenca_sessaoConfig.name |
|
|
app_presenca_sessao = presenca_sessaoConfig.name |
|
@ -52,14 +52,13 @@ relatorio_materia_por_ano_autor_tipo = ( |
|
|
historico_tramitacoes = (app_relatorios + ':historico_tramitacoes') |
|
|
historico_tramitacoes = (app_relatorios + ':historico_tramitacoes') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def has_iframe(url, request): |
|
|
def has_iframe(url, request): |
|
|
|
|
|
|
|
|
iframe = request.GET.get( |
|
|
iframe = request.GET.get( |
|
|
'iframe', |
|
|
'iframe', |
|
|
EMPTY_STRING) |
|
|
EMPTY_STRING) |
|
|
if iframe: |
|
|
if iframe: |
|
|
iframe_qs= ("iframe=" + iframe) |
|
|
iframe_qs = ("iframe=" + iframe) |
|
|
url += ("&" if "?" in url else "?") |
|
|
url += ("&" if "?" in url else "?") |
|
|
url += iframe_qs |
|
|
url += iframe_qs |
|
|
|
|
|
|
|
|