bad urls fixed using online forms

This commit is contained in:
Philip Sargent
2021-04-05 00:27:24 +01:00
parent 51f0450df5
commit bf13a4b743
9 changed files with 52 additions and 38 deletions

View File

@@ -15,8 +15,11 @@ Day to day cave recording and surveying tasks are documented
in the expo "survey handbook"
<h3>stroggle</h3>
<p>At one time Martin Green attempted to reimplement troggle as "stroggle" using <a href="https://www.fullstackpython.com/flask.html">flask</a> instead of Django at
<a href="https://en.wikipedia.org/wiki/Gitorious">git@gitorious.org:stroggle/stroggle.git</a> (but gitorious has been deleted).</p>
<a href="https://en.wikipedia.org/wiki/Gitorious">git@gitorious.org:stroggle/stroggle.git</a> (but gitorious has been deleted).
</p>
<p>A copy of this project is archived by Wookey on <a href="http://wookware.org/software/cavearchive/stroggle/">wookware.org/software/cavearchive/stroggle/</a>.
<p>(but <a href="https://adamj.eu/tech/2019/04/03/django-versus-flask-with-single-file-applications/">maybe is only simpler when
starting a new project and doesn't scale to complexity</a> the way Django does?)
<p>There is also a copy of stroggle on the backed-up, read-only copy of gitorious on "<a href="https://gitorious.org/">gitorious valhalla</a>"<br />
<a href="https://gitorious.org/stroggle/stroggle.git/">stroggle code</a></br>
<a href="https://gitorious.org/stroggle/stroggle-gitorious-wiki.git/">stroggle-gitorious-wiki</a></br>
@@ -68,12 +71,12 @@ But it has to be said that the
<a href="https://docs.djangoproject.com/en/2.1/ref/templates/builtins/#std:templatefilter-dictsort">django
HTML templating mechanism</a> is sufficiently powerful that it does almost
amount to an additional language to learn.
<p>Troggle has 66 different url recognisersand there are 71 HTML django
<p>Troggle has 66 different url recognisers and there are 71 HTML django
template files which the recognisers direct to.
Not all page templates are currently used but still some kind of templating system would seem to be
probably necessary.</p>
probably necessary for sanity and maintenance self-documentation.</p>
<p>The django system is sufficiently well-thought-of
that it forms the basis for the framework-independent templaing engine
that it forms the basis for the framework-independent templating engine
<a href="https://jinja.palletsprojects.com/en/2.11.x/">Jinja</a> - and that site has a good discussion
on whether templating is a good thing or not. There are about
<a href="https://wiki.python.org/moin/Templating">20 different python template engines</a>.]
@@ -121,9 +124,13 @@ exist
[This vastly underestimates the number of things that troggle does for us.
See "<a href="/expofiles/documents/troggle/troggle2020.pdf" download>
Troggle: a revised system for cave data management</a>"</em>.] And a VM is not required to run and debug troggle.
Sam has produced a docker variant which he uses extensively.
Sam has produced a docker variant which he uses extensively and I run it directly on local
<a href="https://ubuntu.com/wsl">WSL/Ubuntu</a> in Windows10.
<p>Troggle today has 6,400 non-comment lines of python and 2,500 non-comment lines of django HTML template code. Plus there is the integration with the in-browser HTML editor in JavaScript. Half of the python is in the parsers which will not change whatever we do. Django itself is much, much bigger and includes all the security middleware necessary in the web today.
<p>But maintaining the code with the regular Django updates is <a href="trogdjango.html">a heavy job</a>.]
<p>But maintaining the code with the regular Django updates is <a href="trogdjango.html">a heavy job</a>.
<p><em>"the horrifying url rewrites that correspond to no files"</em> were bugs introduced by people who edited troggle without knowing what they were doing. We now have a test suite and these have all been fixed.
<p>Troggle is now packaged such that it can run entirely on a standalone laptop and re-loads from scratch in 2 minutes, not 5 hours. So if one has a microSD card with 40GB of historical scanned images and photos, it will run on any Windows or Linux laptop. Even at top camp.
]
</div>
How much work would this actually take:
<ul>