Fixed marriage problem and startup dialog

svn: r1515
This commit is contained in:
Don Allingham
2003-05-12 19:39:49 +00:00
parent 3058db9d18
commit ec119ab64a
8 changed files with 219 additions and 46 deletions

View File

@ -181,6 +181,7 @@ class GrampsParser:
"url" : (self.start_url, None)
}
def parse(self,file):
p = xml.parsers.expat.ParserCreate()
p.StartElementHandler = self.startElement
@ -194,6 +195,8 @@ class GrampsParser:
if self.db.personMap.has_key(id) and self.db.getDefaultPerson() == None:
person = self.db.personMap[id]
self.db.setDefaultPerson(person)
for key in self.func_map.keys():
del self.func_map[key]
def start_lds_ord(self,attrs):
type = attrs['type']