From 3fa7d9d6209fe2d3624798d802df249b0c7f08cd Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 19 Aug 2004 17:04:55 +0000 Subject: [PATCH] 2004-08-19 Tim Waugh * src/WriteGedcom.py (get_persons_sources): Remove extra calls to get_handle() to prevent traceback. svn: r3440 --- ChangeLog | 4 +++- src/WriteGedcom.py | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index fa4720c34..4dc1359e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-08-19 Tim Waugh - * src/gramps_main.py (import_tool_callback): Set home person. + * src/WriteGedcom.py (get_persons_sources): Remove extra calls to + get_handle() to prevent traceback. + * src/gramps_main.py (import_tool_callback): Set home person. 2004-08-19 Don Allingham * src/DisplayModels.py: simplify internal iter handling. diff --git a/src/WriteGedcom.py b/src/WriteGedcom.py index fd134d98a..d6b833876 100644 --- a/src/WriteGedcom.py +++ b/src/WriteGedcom.py @@ -155,16 +155,16 @@ def add_persons_sources(db,person,slist,private): continue for source_ref in event.get_source_references(): sbase = source_ref.get_base_handle() - if sbase != None and not slist.has_key(sbase.get_handle()): - slist[sbase.get_handle()] = 1 + if sbase != None and not slist.has_key(sbase): + slist[sbase] = 1 for event in person.get_attribute_list(): if private and event.get_privacy(): continue for source_ref in event.get_source_references(): sbase = source_ref.get_base_handle() - if sbase != None and not slist.has_key(sbase.get_handle()): - slist[sbase.get_handle()] = 1 + if sbase != None and not slist.has_key(sbase): + slist[sbase] = 1 for name in person.get_alternate_names() + [person.get_primary_name()]: if private and name.get_privacy():