diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-06-28 20:24:04 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-06-28 20:24:04 +0300 |
commit | 501692586d1a4191eb4229e35c0f0a2655faf982 (patch) | |
tree | 68f846f9158d06be54528eddf98bca57066d92a4 /parsers | |
parent | fc427993e75fe75a2f8389000f4b658a418955c1 (diff) | |
download | troggle-501692586d1a4191eb4229e35c0f0a2655faf982.tar.gz troggle-501692586d1a4191eb4229e35c0f0a2655faf982.tar.bz2 troggle-501692586d1a4191eb4229e35c0f0a2655faf982.zip |
add multi year menu
Diffstat (limited to 'parsers')
-rw-r--r-- | parsers/survex.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/parsers/survex.py b/parsers/survex.py index 270bcea..42b71a3 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -26,7 +26,7 @@ todo = """ easier to understand and maintain https://mathspp.com/blog/til/re-match-groupdict -- replace hard-coded instuments list with reding an editable textfile in expoweb. +- replace hard-coded instuments list with reading an editable textfile in expoweb. - Obscure bug in the *team inheritance and rootblock initialization needs tracking down, probably in the team cache which should NOT be global, but should be an instance variable of @@ -1092,6 +1092,13 @@ class LoadingSurvex: # delete the object to save memory survexleg = None + + def LoadSurvexMessteam(self, survexblock, args): + """Interpret the ; Messteam and ; Zeichner records, + Currently this just sets a flag that the survex block is not CUCC + """ + survexblock.foreigners = True + survexblock.save() def LoadSurvexRef(self, survexblock, args): """Interpret the *ref record, and all the many variants @@ -1640,6 +1647,7 @@ class LoadingSurvex: team = self.rx_commteam.match(comment) if team: # print(f'rx_commteam -- {comment=} in {survexblock.survexfile.path} :: {survexblock}') + self.LoadSurvexMessteam(survexblock, comment) pass |