2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 16:51:54 +00:00
This commit is contained in:
Martin Green 2022-06-19 00:27:10 +01:00
parent 5f34a78d94
commit 372c7e0804

View File

@ -274,6 +274,7 @@ def editexpopage(request, path):
'''Manages the 'Edit this Page' capability for expo handbook and other html pages.
Relies on HTML5 or javascript to provide the in-browser editing environment.
'''
return HttpResponse('File not found' )
try:
# if a cave not a webpage at all.
r = Cave.objects.get(url = path)
@ -301,7 +302,6 @@ def editexpopage(request, path):
return HttpResponse(default_head + html + '<h3>HTML Parsing failure:<br>Page could not be parsed into header and body:<br>failure detected in expowebpage in views.expo.py</h3> Please edit this <var>:expoweb:</var> page to be in the expected full HTML format .</body>' )
except IOError:
print("### File not found ### ", filepath)
return HttpResponse('File not found' )
filefound = False