[Expo-tech] Troggle update
Philip Sargent [Gmail]
philip.sargent at gmail.com
Wed Apr 28 04:00:08 BST 2021
I know you all love getting these updates…
The upload form for uploading scans is working in a bare-bones way.
https://expo.survex.com/scanupload
So now anyone can upload the scans from a wallet. It could even be made phone-friendly.
I will add a file-browser so you can see what you are doing while you are doing it.
The whole cave description form-filling now actually works without being too painful. Sensible defaults mean that this is no longer an error-prone and frustrating process. If you forget to create an entrance it won’t barf anymore. The documentation (today at least) now exactly matches how the system behaves. [I think it is now easier than editing the xml files in an editor and using git at the command line but I know some will disagree.]
The “pending” caves list is now useable: click on one of them in
https://expo.survex.com/dataissues
and there are instructions for registering the cave properly.
the control panel is now working: http://expo.survex.com/controlpanel
- can trigger import of caves, people, logbooks, survex etc. from a webpage
- can also export any logbook into one of two formats (html: working or wiki: broken)
I propose to use the logbooks export to carefully re-do some logbooks into the same “2005” HTML format.
Then we can junk all the parsers of the many and varied ‘artisanal’ formats (to use Phil Withnall’s wonderful epithet)
which will reduce the amount of code we need to maintain.
There is still some tidying to do, and not everything in the logbooks survives this process so odd bits will need to be copied across by hand. Which, for 26 logbooks, would take a while. But 2003 has its own parser so that at least can be made more regular. [And there are some UTF-8/iso-8859-1 funnies too.]
e.g. compare:
https://expo.survex.com/years/2018/logbook.html
https://expo.survex.com/years/2018/newlogbook.html (very slow due to parsing confusions I think)
Sorry, the 3D CaveView is broken. I don’t know why. It was working 2 weeks ago and I haven’t knowingly touched it.
Initial Therion importing is working, but little more.
Online wallets all ready for 20201 expo. Wallets script now on python3.
326 geolocated entrances. And rather a lot more we probably only have a vague idea of where they are.
Sundry other things:
vastly more error messages and unusual conditions caught and handled.
68 tests in the test suite.
All assertions removed from code and replaced with ‘DataIssue’ logged messages: no more unexpected aborts I hope.
Cached webpages for the /expeditions/ pages.
You can now make a full troggle development system without needing a local copy of /expofiles/ so it fits into a couple of GB including all the repos.
Troggle works fine on the latest version of Django 3.2 released in April this year.
Mugshots and bios now work for peoples’ biogs linked to the logbooks and surveys.
Several confusing and broken functions removed.
More thought given to replacing Django: https://expo.survex.com/handbook/troggle/trog2030.html
Many files have a ‘to do’ list at the top in a comment and these are collected together automatically in the systems to-do page https://expo.survex.com/handbook/computing/todo.html
git gives me the heebie-jeebies so I am trying to make everything work without it being necessary to tangle with it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wookware.org/pipermail/expo-tech/attachments/20210428/0a340877/attachment.htm>
More information about the Expo-tech
mailing list