mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-02-18 05:00:13 +00:00
bugfix
This commit is contained in:
parent
3db9c16082
commit
23462df49c
@ -6,6 +6,7 @@ import resource
|
|||||||
import random
|
import random
|
||||||
import logging
|
import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
from decimal import Decimal, getcontext
|
from decimal import Decimal, getcontext
|
||||||
|
@ -345,7 +345,7 @@ def edit_cave(request, slug=None):
|
|||||||
except PermissionError:
|
except PermissionError:
|
||||||
message = f'CANNOT save this file.\nPERMISSIONS incorrectly set on server for this file {cave.filename}. Ask a nerd to fix this.'
|
message = f'CANNOT save this file.\nPERMISSIONS incorrectly set on server for this file {cave.filename}. Ask a nerd to fix this.'
|
||||||
return render(request,'errors/generic.html', {'message': message})
|
return render(request,'errors/generic.html', {'message': message})
|
||||||
except SubprocessError:
|
except subprocess.SubprocessError:
|
||||||
message = f'CANNOT git on server for this file {cave.filename}. Edits may not be committed.\nAsk a nerd to fix this.'
|
message = f'CANNOT git on server for this file {cave.filename}. Edits may not be committed.\nAsk a nerd to fix this.'
|
||||||
return render(request,'errors/generic.html', {'message': message})
|
return render(request,'errors/generic.html', {'message': message})
|
||||||
|
|
||||||
@ -415,7 +415,7 @@ def edit_entrance(request, caveslug=None, slug=None):
|
|||||||
except PermissionError:
|
except PermissionError:
|
||||||
message = f'CANNOT save this file.\nPERMISSIONS incorrectly set on server for this file {entrance.filename}. Ask a nerd to fix this.'
|
message = f'CANNOT save this file.\nPERMISSIONS incorrectly set on server for this file {entrance.filename}. Ask a nerd to fix this.'
|
||||||
return render(request,'errors/generic.html', {'message': message})
|
return render(request,'errors/generic.html', {'message': message})
|
||||||
except SubprocessError:
|
except subprocess.SubprocessError:
|
||||||
message = f'CANNOT git on server for this file {entrance.filename}. Edits may not be committed.\nAsk a nerd to fix this.'
|
message = f'CANNOT git on server for this file {entrance.filename}. Edits may not be committed.\nAsk a nerd to fix this.'
|
||||||
return render(request,'errors/generic.html', {'message': message})
|
return render(request,'errors/generic.html', {'message': message})
|
||||||
|
|
||||||
|
@ -10,9 +10,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<p>QMs are also loaded directly from the survex files, e.g. see
|
<p>QMs are also loaded directly from the survex files, e.g. see
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{% url 'caveQMs' '1623-264' %}">1623-264 QMs</a>
|
<li><a href="{% url 'caveQMs' '1623-264' %}">1623-264 QMs</a> Balkon
|
||||||
<li><a href="{% url 'caveQMs' '1623-258' %}">1623-258 QMs</a>
|
<li><a href="{% url 'caveQMs' '1623-258' %}">1623-258 QMs</a> Tunnocks
|
||||||
<li><a href="{% url 'caveQMs' '1623-290' %}">1623-290 QMs</a>
|
<li><a href="{% url 'caveQMs' '1623-290' %}">1623-290 QMs</a> Fischgesicht
|
||||||
|
<li><a href="{% url 'caveQMs' '1626-359' %}">1626-359 QMs</a> Homecoming (2018-dm-07)
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>For full explanation of the current status of the QM system(s), see <a href="/handbook/troggle/scriptsqms.html">scriptsqms page</a>.
|
<p>For full explanation of the current status of the QM system(s), see <a href="/handbook/troggle/scriptsqms.html">scriptsqms page</a>.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user