* src/LdsUtils.py: switch to parsing an external XML file instead of

hard coded values
	* src/data/lds.xml: new file
	* src/data/Makefile.am: handle new lds.xml
	* src/Editors/_EditLdsOrd.py: handle new LDS temple scheme
	* src/GrampsDbUtils/_GedcomParse.py: handle new LDS temple scheme
	* DisplayTabs/_LdsModel.py: handle new LDS temple scheme

2007-06-23  Don Allingham  <don@gramps-project.org>


svn: r8648
This commit is contained in:
Don Allingham
2007-06-24 04:32:54 +00:00
parent e8c8245c05
commit e978a43d3a
8 changed files with 607 additions and 172 deletions

View File

@@ -4456,10 +4456,10 @@ class GedcomParser(UpdateCallback):
def extract_temple(self, line):
def get_code(code):
if LdsUtils.temple_to_abrev.has_key(code):
if LdsUtils.Temples.is_valid_code(code):
return code
elif LdsUtils.temple_codes.has_key(code):
return LdsUtils.temple_codes[code]
elif LdsUtils.Temples.is_valid_name(code):
return LdsUtils.Temples.code(code)
code = get_code(line.data)
if code: