From 2d367643c7a0acdcfbb9ccaa9d5bb6b8e4518ab6 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 7 Mar 2019 16:55:19 -0300 Subject: [PATCH] Atualiza endpoints LexML --- sapl/lexml/OAIServer.py | 2 +- sapl/lexml/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/lexml/OAIServer.py b/sapl/lexml/OAIServer.py index ad4264dc5..f4b37ea1a 100644 --- a/sapl/lexml/OAIServer.py +++ b/sapl/lexml/OAIServer.py @@ -275,7 +275,7 @@ def get_config(url, batch_size): 'metadata_prefixes': ['oai_lexml'], 'titulo': casa_legislativa().nome, # Inicializa variável global casa 'email': [casa.email], # lista de e-mails, antigo `def get_email()` - 'base_url': url[:url.find('/', 8)], + 'base_url': url[:url.find('/', 8)] + reverse('sapl.lexml:lexml_endpoint'), 'descricao': get_xml_provedor(), 'batch_size': batch_size } diff --git a/sapl/lexml/urls.py b/sapl/lexml/urls.py index 1c3e88393..980ade7c4 100644 --- a/sapl/lexml/urls.py +++ b/sapl/lexml/urls.py @@ -12,6 +12,6 @@ urlpatterns = [ url(r'^sistema/lexml/publicador/', include(LexmlPublicadorCrud.get_urls())), url(r'^sistema/lexml/request_search/(?P[\w\-]+)/', request_search, name='lexml_search'), - url(r'^sistema/lexml', lexml_request, name='lexml_endpoint'), + url(r'^sistema/lexml/oai', lexml_request, name='lexml_endpoint'), ]