* 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

@@ -40,6 +40,7 @@ import gtk
#
#-------------------------------------------------------------------------
import DateHandler
import LdsUtils
#-------------------------------------------------------------------------
#
@@ -53,16 +54,13 @@ class LdsModel(gtk.ListStore):
def __init__(self, lds_list, db):
gtk.ListStore.__init__(self, str, str, str, str, str, object)
import LdsUtils
self.db = db
for lds_ord in lds_list:
self.append(row=[
lds_ord.type2str(),
DateHandler.get_date(lds_ord),
lds_ord.status2str(),
LdsUtils.temple_to_abrev.get(lds_ord.get_temple(),
_("unknown")),
LdsUtils.Temples.name(lds_ord.get_temple()),
self.column_place(lds_ord),
lds_ord,
])