mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-29 13:21:54 +00:00
test
This commit is contained in:
parent
5f34a78d94
commit
372c7e0804
@ -274,6 +274,7 @@ def editexpopage(request, path):
|
|||||||
'''Manages the 'Edit this Page' capability for expo handbook and other html pages.
|
'''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.
|
Relies on HTML5 or javascript to provide the in-browser editing environment.
|
||||||
'''
|
'''
|
||||||
|
return HttpResponse('File not found' )
|
||||||
try:
|
try:
|
||||||
# if a cave not a webpage at all.
|
# if a cave not a webpage at all.
|
||||||
r = Cave.objects.get(url = path)
|
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>' )
|
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:
|
except IOError:
|
||||||
print("### File not found ### ", filepath)
|
print("### File not found ### ", filepath)
|
||||||
return HttpResponse('File not found' )
|
|
||||||
filefound = False
|
filefound = False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user