diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d1e57c562..7fb702496 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-04-21 Don Allingham + * src/GrampsDb/_DbUtils.py: fix old call to get_child_handle_list * src/Editors/_EditSource.py: remove warnbox * src/Editors/_EditMedia.py: remove warnbox * src/PluginUtils/_PluginStatus.py: add viewing of exceptions diff --git a/gramps2/src/GrampsDb/_DbUtils.py b/gramps2/src/GrampsDb/_DbUtils.py index bbe971b58..7739c070b 100644 --- a/gramps2/src/GrampsDb/_DbUtils.py +++ b/gramps2/src/GrampsDb/_DbUtils.py @@ -39,7 +39,8 @@ def remove_family_relationships(db, family_handle, trans=None): person.remove_family_handle(family_handle) db.commit_person(person, trans) - for phandle in family.get_child_handle_list(): + for ref in family.get_child_ref_list(): + phandle = ref.ref person = db.get_person_from_handle(phandle) person.remove_parent_family_handle(family_handle) db.commit_person(person, trans)