Added validation for existence of files linked from folk.csv

This commit is contained in:
Philip Sargent 2020-04-01 19:55:46 +01:00
parent f74c304cd4
commit 2cdfd4ea53
6 changed files with 32 additions and 11 deletions

View File

@ -238,7 +238,7 @@ Nick Reckert,Reckert,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Simon Redhead,Redhead,,,i/simonr.jpg,,,,,,,,,,,,,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,,
Penny Reeves,Reeves,,,l/penny.htm,,,,,,,,,,,,,1,1,,1,,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,
Mike Richardson (Mike TA),Richardson,,,l/miketa.htm,,,,,,,,,1,1,,1,1,1,1,,1,,1,1,1,1,,1,1,1,,,,,,,,1,,,1,,,,,,,,
Rover Richardson,Richardson,,,../piclinks/rover.htm,,,,,,,,,-1,-1,,-1,-1,-1,-1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Rover Richardson,Richardson,,,l/rover.htm,,,,,,,,,-1,-1,,-1,-1,-1,-1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Rob Rignall,Rignall,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1,,,,,
Bob Riley (Long),Riley,1,,,,,,,,,,,,,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,,,,
Del Robinson,Robinson,,,i/del.jpg,,,,,,,,,,,,,1,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

1 Name Lastname Guest VfHO member Mugshot 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
238 Simon Redhead Redhead i/simonr.jpg 1
239 Penny Reeves Reeves l/penny.htm 1 1 1 1 1
240 Mike Richardson (Mike TA) Richardson l/miketa.htm 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
241 Rover Richardson Richardson ../piclinks/rover.htm l/rover.htm -1 -1 -1 -1 -1 -1
242 Rob Rignall Rignall 1 1
243 Bob Riley (Long) Riley 1 1
244 Del Robinson Robinson i/del.jpg 1 1 1 1

BIN
folk/i/mug.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

BIN
folk/i/rover.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -23,14 +23,6 @@ This was despite having enjoyed the delights of P8 in claggies when he was a fre
<p class="caption">Photo &copy; Brian Derby (with OUCC in N.Ireland)</p>
<!-- LINKS -->
<ul id="links">
<li>Back to table of <a href="../index.htm">expo members</a></li>
<li>Back to <a href="../../index.htm">Expedition Intro page</a>
<ul>
<li><a href="../../infodx.htm"><b>Index</b> to Expo</a> information pages</li>
</ul></li>
<li>Back to <a href="../../../index.htm">CUCC Home page</a></li>
</ul>
<hr>
</body>
</html>

26
folk/l/rover.htm Normal file
View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Rover Richardson on expo
</title>
<link rel="stylesheet" type="text/css" href="../css/main2.css" />
</head>
<body>
<div class="centre">
<img src="../i/rover.jpg" width="420" height="348" alt="" />
</div>
<p>Veteran transport for many expeditions, Rover Richardson had the
unique distinction of being older than his owner (who was by no means
one of the youngest of expedition members). Sporting a tremendous
carrying capacity and a powerful (though much needed) stereo system
which made up somewhat for the lack of speed and comfort, Rover was one
of the most distinctive sights denoting that CUCC were "in residence"
around Bad Aussee.</p>
<p class="caption">Photo &copy; Penny Reeves, 1988</p>
<!-- Photo scanned by Coolscan on 1997.08.05, AERW -->
<hr />
</body>
</html>

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import sys, string, re
import sys, string, re, os
# run within the /folk/ folder:
# python ../scripts/make-folklist.py <folk.csv >index.htm
@ -54,6 +54,9 @@ for r in lines[1:]:
output += '</td><td>'
if vfho: output += '&curren;'
output += '</td><td>'
if mug:
if not (os.path.isfile(mug)):
print >> sys.stderr, "ERROR: --------------- mug file does not exist: ", mug
if mug: output += '<a href=%s><img alt=":-)" src="i/mug.png" /></a>' % mug
output += '</td>'
for y in xrange(len(years)):