summaryrefslogtreecommitdiffstats
path: root/core/views/surveys.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-26 18:42:10 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-26 18:42:10 +0100
commitd43ce1bdb278c021d18e9a5af26f68dc2711c7f1 (patch)
tree6da5c238304ee8d14103f9debe30f7d39eafe57d /core/views/surveys.py
parentbd647b99ec7bd4ae9d3b8b7a6f5b0c274f90bb2e (diff)
downloadtroggle-d43ce1bdb278c021d18e9a5af26f68dc2711c7f1.tar.gz
troggle-d43ce1bdb278c021d18e9a5af26f68dc2711c7f1.tar.bz2
troggle-d43ce1bdb278c021d18e9a5af26f68dc2711c7f1.zip
rename TUNNEL_DATA as DRAWINGS_DATA
Diffstat (limited to 'core/views/surveys.py')
-rw-r--r--core/views/surveys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/views/surveys.py b/core/views/surveys.py
index d2d2fac..c54d6de 100644
--- a/core/views/surveys.py
+++ b/core/views/surveys.py
@@ -64,7 +64,7 @@ def dwgfilesingle(request, path):
message = f'Drawing file error or not found \'{path}\' .'
return render(request, 'errors/generic.html', {'message': message})
- tfile = Path(settings.TUNNEL_DATA, dwgfile.dwgpath)
+ tfile = Path(settings.DRAWINGS_DATA, dwgfile.dwgpath)
try: # for display not download
return HttpResponse(content=open(tfile, errors='strict'), content_type="text/xhtml")
except UnicodeDecodeError:
@@ -86,7 +86,7 @@ def dwgfileupload(request, path):
except:
message = f'Drawing file error or not found \'{path}\' .'
return render(request, 'errors/generic.html', {'message': message})
- tfile = Path(settings.TUNNEL_DATA, dwgfile.dwgpath)
+ tfile = Path(settings.DRAWINGS_DATA, dwgfile.dwgpath)
project, user, password, tunnelversion = request.POST["tunnelproject"], request.POST["tunneluser"], request.POST["tunnelpassword"], request.POST["tunnelversion"]
print(project, user, tunnelversion)