more troggle pages dismemberment

This commit is contained in:
2020-04-02 21:40:30 +01:00
parent a5447cf626
commit cabf306a56
10 changed files with 162 additions and 372 deletions

View File

@@ -2,25 +2,29 @@ Convert the folk.csv to fold/index.htm like this:
$ cd :expoweb:/folk
$ python ../scripts/make-folklist.py <folk.csv >index.htm
This does some basiuc validation: it check sthat the mugshot
images and blurb HTML files exist.
Troggle *also* reads the mugshot and blurb about each person.
It reads it direct from folk.csv
It does this when troggle is run with
python databaseReset.py people
Troggle generates its own blurb about each person.
A link to this troggle page has been added to folk/index.htm by
editing the script.
Troggle generates its own blurb about each person, including poast expedtitions and trips
taken from the logbooks (and from parsing svx files ?)
A link to this troggle page has been added to folk/index.htm
by making it happen in make-folklist.py
Troggle scans the blurb and looks for everything between <body> and <hr
to find the text of the blurb
(see ::troggle::/parsers/people.py)
All the blurb files have to be .htm - ,html is not recognised by people.py
and trying to fix this breaks something else.
and trying to fix this breaks something else (weirdly, not fuly investigated).
There seems to be a problem with importing blrubs with more than one image file, even those the code
in people.py only looks for the first image file
Anyway,
http://127.0.0.1:8000/person/MichaelSargent doesn't have the blurb
whereas
http://127.0.0.1:8000/person/PhilipSargent does have the blurb.
in people.py only looks for the first image file but then fails to use it.
Troggle creates another copy of all the mugshot image files in :expoweb:/photos/
god knows why.
But neither has even one mugshot.