Browse Source

Use https for pentaho dependencies if necessary

producao
Marcio Mazza 10 years ago
parent
commit
00ca731bbe
  1. 2
      sigi/apps/saberes/views.py

2
sigi/apps/saberes/views.py

@ -28,6 +28,8 @@ def get_dashboard_parts(dashboard_id, this_host):
def make_dashboard(dashboard_id, adjust_content=lambda x: x): def make_dashboard(dashboard_id, adjust_content=lambda x: x):
def view(request): def view(request):
headers, content = get_dashboard_parts(dashboard_id, request.META['HTTP_HOST']) headers, content = get_dashboard_parts(dashboard_id, request.META['HTTP_HOST'])
if request.is_secure:
headers = headers.replace('http://', 'https://')
content = adjust_content(content) content = adjust_content(content)
return render(request, 'saberes/dashboard.html', return render(request, 'saberes/dashboard.html',
dict(headers=headers, content=content)) dict(headers=headers, content=content))

Loading…
Cancel
Save