From b2d59995e3af845cfe3a858bfde8301f86eb92c6 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 --- ChangeLog | 1 + src/Utils.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d58dc48a9..8d78da871 100644 --- a/ChangeLog +++ b/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/src/Utils.py b/src/Utils.py index b3b06b5cf..f55aaff8c 100644 --- a/src/Utils.py +++ b/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)