From b9eb66679e3a987f23dbb32156a71abf5d5b6998 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 23 Jun 2006 17:10:05 +0000 Subject: [PATCH] 2006-06-23 Don Allingham * src/GrampsDb/_ReadXML.py: fix syntax error with old ref formats svn: r6951 --- gramps2/ChangeLog | 3 +++ gramps2/src/GrampsDb/_ReadXML.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index adba1e719..d6311e70a 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-06-23 Don Allingham + * src/GrampsDb/_ReadXML.py: fix syntax error with old ref formats + 2006-06-22 Don Allingham * src/GrampsDb/_GrampsDbBase.py: remove unused variable * src/Editors/_EditPlace.py: Allow duplicate names diff --git a/gramps2/src/GrampsDb/_ReadXML.py b/gramps2/src/GrampsDb/_ReadXML.py index 7decf4849..06bb5a7b3 100644 --- a/gramps2/src/GrampsDb/_ReadXML.py +++ b/gramps2/src/GrampsDb/_ReadXML.py @@ -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