Browse Source

Codigo refatorado para seguir a pep8 (arquivos urls.py)

autopep8 -r --in-place --ignore E501,E128 .

e alguns ajustes para seguir a formatacao usual do patterns em urls.py
producao
Marcio Mazza 10 years ago
parent
commit
03ae8a6d08
  1. 2
      sigi/apps/casas/urls.py
  2. 4
      sigi/apps/convenios/urls.py
  3. 4
      sigi/apps/diagnosticos/urls.py
  4. 4
      sigi/apps/metas/urls.py

2
sigi/apps/casas/urls.py

@ -9,7 +9,7 @@ urlpatterns = patterns('sigi.apps.casas.views',
url(r'^(?P<id>\w+)/report_complete/$', 'report_complete', name='report-complete-id'), url(r'^(?P<id>\w+)/report_complete/$', 'report_complete', name='report-complete-id'),
# Reports Labels # Reports Labels
url(r'^labels/$','labels_report', name='labels-report-all'), url(r'^labels/$', 'labels_report', name='labels-report-all'),
url(r'^(?P<id>\w+)/labels/$', 'labels_report', name='labels-report-id'), url(r'^(?P<id>\w+)/labels/$', 'labels_report', name='labels-report-id'),
# Reports Labels Parlamentar # Reports Labels Parlamentar

4
sigi/apps/convenios/urls.py

@ -5,8 +5,8 @@ from django.conf.urls import patterns, url
urlpatterns = patterns('sigi.apps.convenios.views', urlpatterns = patterns('sigi.apps.convenios.views',
url(r'^reports/$', 'report', name='convenios-report'), url(r'^reports/$', 'report', name='convenios-report'),
url(r'^carrinho/$', 'visualizar_carrinho', name='visualizar-carrinho'), url(r'^carrinho/$', 'visualizar_carrinho', name='visualizar-carrinho'),
url(r'^carrinho/excluir_carrinho/$', 'excluir_carrinho', name='excluir-carrinho'), #tagerror url(r'^carrinho/excluir_carrinho/$', 'excluir_carrinho', name='excluir-carrinho'), # tagerror
url(r'^carrinho/deleta_itens_carrinho$', 'deleta_itens_carrinho', name='deleta-itens-carrinho'), #tagerror url(r'^carrinho/deleta_itens_carrinho$', 'deleta_itens_carrinho', name='deleta-itens-carrinho'), # tagerror
url(r'^csv/$', 'export_csv', name='convenios-csv'), url(r'^csv/$', 'export_csv', name='convenios-csv'),
url(r'^reportsRegiao/(?P<regiao>\w+)/$', 'report_regiao', name='convenios-report_regiao_pdf'), url(r'^reportsRegiao/(?P<regiao>\w+)/$', 'report_regiao', name='convenios-report_regiao_pdf'),
) )

4
sigi/apps/diagnosticos/urls.py

@ -32,8 +32,8 @@ urlpatterns = patterns('sigi.apps.diagnosticos.views',
url(r'^diagnostico/(?P<id_diagnostico>\w+).pdf$', 'diagnostico_pdf', name='diagnostico-pdf'), url(r'^diagnostico/(?P<id_diagnostico>\w+).pdf$', 'diagnostico_pdf', name='diagnostico-pdf'),
# Graficos de perguntas # Graficos de perguntas
url(r'^graficos/$', 'graficos', name="diagnosticos-graficos"), #tagerror url(r'^graficos/$', 'graficos', name="diagnosticos-graficos"), # tagerror
url(r'^api/$', 'grafico_api', name="diagnosticos-grafico-api"), #tagerror url(r'^api/$', 'grafico_api', name="diagnosticos-grafico-api"), # tagerror
) )

4
sigi/apps/metas/urls.py

@ -3,8 +3,8 @@ from django.conf.urls import patterns, url
urlpatterns = patterns('sigi.apps.metas.views', urlpatterns = patterns('sigi.apps.metas.views',
url(r'^$', 'dashboard', name='metas-dashboardsss'), #tagerror url(r'^$', 'dashboard', name='metas-dashboardsss'), # tagerror
url(r'^mapa/$', 'mapa', name='metas-mapa'), #tagerror url(r'^mapa/$', 'mapa', name='metas-mapa'), # tagerror
url(r'^mapdata/$', 'map_data', name='metas-map_data'), url(r'^mapdata/$', 'map_data', name='metas-map_data'),
url(r'^mapsearch/$', 'map_search', name='metas-map_search'), url(r'^mapsearch/$', 'map_search', name='metas-map_search'),
url(r'^mapsum/$', 'map_sum', name='metas-map_sum'), url(r'^mapsum/$', 'map_sum', name='metas-map_sum'),

Loading…
Cancel
Save