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

* src/GrampsDb/_ReadXML.py: fix syntax error with old ref formats



svn: r6951
This commit is contained in:
Don Allingham 2006-06-23 17:10:05 +00:00
parent 69e0f471ad
commit b9eb66679e
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2006-06-23 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadXML.py: fix syntax error with old ref formats
2006-06-22 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDbBase.py: remove unused variable
* src/Editors/_EditPlace.py: Allow duplicate names

View File

@ -873,7 +873,7 @@ class GrampsParser(UpdateCallback):
self.db.check_person_from_handle(handle,self.trans)
except KeyError:
person = self.find_person_by_gramps_id(self.map_gid(attrs["ref"]))
handle = person_handle
handle = person.handle
self.family.set_father_handle(handle)
def start_mother(self,attrs):
@ -882,7 +882,7 @@ class GrampsParser(UpdateCallback):
self.db.check_person_from_handle(handle,self.trans)
except KeyError:
person = self.find_person_by_gramps_id(self.map_gid(attrs["ref"]))
handle = person_handle
handle = person.handle
self.family.set_mother_handle(handle)
def start_child(self,attrs):
@ -891,7 +891,7 @@ class GrampsParser(UpdateCallback):
self.db.check_person_from_handle(handle,self.trans)
except KeyError:
person = self.find_person_by_gramps_id(self.map_gid(attrs["ref"]))
handle = person_handle
handle = person.handle
# Here we are handling the old XML, in which
# frel and mrel belonged to the "childof" tag