summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-06-14 04:33:19 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-06-14 04:33:19 +0100
commitd71ef45bf8f27da0ecf28ba2beeed2ab243b8488 (patch)
treec3b39bbdd208c12ea84792da40e8feae16d67e49 /parsers
parent5db52862f6d2ebcc3c3878f2442f68e3d4372d72 (diff)
downloadtroggle-d71ef45bf8f27da0ecf28ba2beeed2ab243b8488.tar.gz
troggle-d71ef45bf8f27da0ecf28ba2beeed2ab243b8488.tar.bz2
troggle-d71ef45bf8f27da0ecf28ba2beeed2ab243b8488.zip
[svn] Added beginnings subcaves parser. This required importing more information from cavetab, namely the location where the main cave page appeared on the old expo website.
Diffstat (limited to 'parsers')
-rw-r--r--parsers/cavetab.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/parsers/cavetab.py b/parsers/cavetab.py
index dcc8fcc..d0fb052 100644
--- a/parsers/cavetab.py
+++ b/parsers/cavetab.py
@@ -181,6 +181,13 @@ def LoadCaveTab():
addToDefaultArgs(Extent, "extent")
addToDefaultArgs(SurvexFile, "survex_file")
addToDefaultArgs(Notes, "notes")
+
+ #The following adds the legacy_file_path. This is always in either Autogen file or Link file
+ for header in (AutogenFile,LinkFile):
+ if line[header]:
+ addToDefaultArgs(header,"description_file")
+ break
+
#The following checks if this cave is non-public i.e. we don't have rights to display it online.
#Noinfo was the name of the old password protected directory, so if it has that then we will