{% extends "base.html" %} {% block title %}Cave fix misplaced images and descriptive files {% endblock %} {% block content %}

Cave fix misplaced images and descriptive files

This page and the code behind it ( in troggle/core/views/cave_kataster.py) is for one-off data reformatting and rearrangment fixes. Once the fix has been done it never needs to be done again.

This is in contrast to the katastering tool which is used regularly: whenever a cave with a discovery unofficial name gets an official kataster number.

In the past we have reformatted the URLs and filenames for caves which were incompletely katastered, and for caves where for several months the images in the cave descriptions were put in the worng place by unfinished software. In the future we expect to have to tidy up the incoherent QMs system, move non-cave "guidebook" material out of the /1623/ directory tree, extract EXIF GPS data from photos and a lot more. Making the logbook entries have properly persistent internal IDs would also be a good thing.

{% csrf_token %} {{form.as_p}}

{{warning|safe}}

{{error|safe}}

Rename the cave description directories in expoweb/{{areacode|safe}}/

Done.

{% if misplaced %} 1623/l/ :
{% endif %} {{misplaced|safe}}

Fix the old-style URLS "115/ent.jpg" to "ent.jpg" or "/1623/115/ent.jpg" in expoweb/{{areacode|safe}}/

Finally

Ideal scenario

Ideally you do this renumbering and fixups on a standalone instance of troggle running on a troggle development laptop and you don't push any of the git commits to the server until you have got all the niggles out of the conversion, i.e. the databaseReset runs locally without any warnings or errors introduced by your renaming and 'cavern' runs without any new survex errors.

Copy this script and edit it to match the directory names on your PC


{{warning|safe}}

{{error|safe}}

{% endblock %}