Skip to content

Commit

Permalink
fixed kml export to work over rest
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarmot committed Oct 13, 2017
1 parent 4a45931 commit 11825b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xgds_planner2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
from xgds_planner2.xpjson import loadDocumentFromDict
from xgds_map_server.views import getSearchForms
from xgds_core.views import get_handlebars_templates, addRelay
from xgds_core.util import insertIntoPath

from xgds_map_server.forms import MapSearchForm
from geocamUtil.datetimeJsonEncoder import DatetimeJsonEncoder
Expand Down Expand Up @@ -555,7 +556,8 @@ def getPlanIndexKml(request):
for plan in plans:
fname = '%s.kml' % plan.escapedName()
relUrl = reverse('planner2_planExport', args=[plan.uuid, fname])
url = request.build_absolute_uri(relUrl)
restUrl = insertIntoPath(relUrl, 'rest')
url = request.build_absolute_uri(restUrl)
# print(url)
out.write("""
<NetworkLink>
Expand Down

0 comments on commit 11825b4

Please sign in to comment.