summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/views/expo.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 84f979c..42ca8a2 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -54,6 +54,18 @@ def expofiles_redirect(request, path):
'''
return redirect(urljoin('http://expo.survex.com/expofiles/', path))
+def map(request):
+ '''Serves unadorned the expoweb/map/map.html file
+ '''
+ fn = Path(settings.EXPOWEB, 'map', 'map.html')
+ return HttpResponse(content=open(fn, "r"),content_type='text/html')
+
+def mapfile(request, path):
+ '''Serves unadorned file
+ '''
+ fn = Path(settings.EXPOWEB, 'map', path)
+ return HttpResponse(content=open(fn, "r"),content_type=getmimetype(fn))
+
def expofilessingle(request, filepath):
'''sends a single binary file to the user, if not found, show the parent directory
If the path actually is a directory, then show that.