From 2b58bc1a9db049fdba8cef4cdc3f894dff31321d Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Thu, 11 Oct 2007 22:40:08 +0000 Subject: [PATCH] small error in previous commit svn: r9150 --- src/GrampsDb/_ReadXML.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GrampsDb/_ReadXML.py b/src/GrampsDb/_ReadXML.py index cb43156c5..1d0859a9d 100644 --- a/src/GrampsDb/_ReadXML.py +++ b/src/GrampsDb/_ReadXML.py @@ -679,7 +679,7 @@ class GrampsParser(UpdateCallback): handle = attrs['hlink'].replace('_','') self.db.check_place_from_handle(handle,self.trans,set_gid = False) except KeyError: - #I think this code is wrong, place has no ref attribute + #legacy, before hlink there was ref gramps_id = self.map_pid(attrs['ref']) place = self.find_place_by_gramps_id(gramps_id) handle = place.handle @@ -1179,7 +1179,7 @@ class GrampsParser(UpdateCallback): try: handle = attrs['hlink'].replace('_','') self.db.check_repository_from_handle(handle,self.trans, - set_gid=None) + set_gid=False) except KeyError: repo = self.find_repo_by_gramps_id(self.map_rid(attrs['ref'])) handle = repo.handle