From db27730b918e82970e7dee7b6d8c7d8a493c1e0e Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Thu, 13 Apr 2006 19:29:36 +0000 Subject: [PATCH] Adapt to changes in RelLib svn: r6336 --- gramps2/ChangeLog | 1 + gramps2/src/Utils.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d58dc48a9..8d78da871 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,6 +1,7 @@ 2006-04-13 Martin Hawlisch * src/DataViews/_PedigreeView.py: Adapt to changes in RelLib * src/plugins/TestcaseGenerator.py: Adapt to changes in RelLib + * src/Utils.py: Adapt to changes in RelLib 2006-04-13 Don Allingham * src/DataViews/_FamilyView.py: remove bad tab diff --git a/gramps2/src/Utils.py b/gramps2/src/Utils.py index b3b06b5cf..f55aaff8c 100644 --- a/gramps2/src/Utils.py +++ b/gramps2/src/Utils.py @@ -720,7 +720,7 @@ def for_each_ancestor(db, start, func, data): doneIds[p_handle] = 1 if func(data,p_handle): return 1 - for fam_handle, mrel, frel in p.get_parent_family_handle_list(): + for fam_handle in p.get_parent_family_handle_list(): fam = db.get_family_from_handle(fam_handle) if fam: f_handle = fam.get_father_handle() @@ -924,7 +924,8 @@ def probably_alive(person,db,current_year=None,limit=0): for family_handle in person.get_family_handle_list(): family = db.get_family_from_handle(family_handle) - for child_handle in family.get_child_handle_list(): + for child_ref in family.get_child_ref_list(): + child_handle = child_ref.ref child = db.get_person_from_handle(child_handle) if child.birth_ref: child_birth = db.get_event_from_handle(child.birth_ref.ref)