mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-03-31 22:04:01 +01:00
fields in cave.html file
This commit is contained in:
@@ -69,6 +69,8 @@ def kataster(request, slug):
|
|||||||
try:
|
try:
|
||||||
# this is a python generator idiom.
|
# this is a python generator idiom.
|
||||||
# see https://realpython.com/introduction-to-python-generators/
|
# 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:
|
with open(settings.CAVEDESCRIPTIONS / cavefilename, 'r') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
if match := re.search(r'<entranceslug>(.*?)</entranceslug>', line):
|
if match := re.search(r'<entranceslug>(.*?)</entranceslug>', line):
|
||||||
|
|||||||
@@ -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">
|
<ul style="list-style: disc">
|
||||||
|
|
||||||
<li> Edit the '<samp>kataster'number</samp>' field inside the <samp>cave_data</samp> file.
|
<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> 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.
|
<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>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user