diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-01-31 02:00:06 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-01-31 02:00:06 +0000 |
commit | 49ea30cf0691bfb075791d6a6f9837db9392ff88 (patch) | |
tree | 3f5ae513a9514915757086f1cb864150382879c0 | |
parent | 4a0496b3b4946e8e13130107040c8f235f30f488 (diff) | |
download | troggle-49ea30cf0691bfb075791d6a6f9837db9392ff88.tar.gz troggle-49ea30cf0691bfb075791d6a6f9837db9392ff88.tar.bz2 troggle-49ea30cf0691bfb075791d6a6f9837db9392ff88.zip |
fields in cave.html file
-rw-r--r-- | core/views/cave_kataster.py | 2 | ||||
-rw-r--r-- | templates/cave_kataster.html | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/core/views/cave_kataster.py b/core/views/cave_kataster.py index 48aad7d..a682870 100644 --- a/core/views/cave_kataster.py +++ b/core/views/cave_kataster.py @@ -69,6 +69,8 @@ def kataster(request, slug): try:
# this is a python generator idiom.
# see https://realpython.com/introduction-to-python-generators/
+
+ # THIS IS VERY SILLY. We have this in the databse fom when this file was parsed. Don't read it again !
with open(settings.CAVEDESCRIPTIONS / cavefilename, 'r') as f:
for line in f:
if match := re.search(r'<entranceslug>(.*?)</entranceslug>', line):
diff --git a/templates/cave_kataster.html b/templates/cave_kataster.html index 9da4ce0..eaee28c 100644 --- a/templates/cave_kataster.html +++ b/templates/cave_kataster.html @@ -44,6 +44,7 @@ This cave needs to be "katastered". If you have the new number issued by the Aus <ul style="list-style: disc"> <li> Edit the '<samp>kataster'number</samp>' field inside the <samp>cave_data</samp> file. +<li> Edit the '<samp>survex_file</samp>' field inside the <samp>cave_data</samp> file. <li> Edit the '<samp>entranceslug</samp>' field inside each '<samp>entrance</samp>' field in the <samp>cave_data</samp> file. <li> Rename all the files listed above - always do this <b>last</b> otherwise it is hard to automatically discover which edits have not been done. </ul> |