2006-04-15 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Adapt to ChildRefType. svn: r6347
This commit is contained in:
parent
6fe0f08334
commit
49a8a2e62c
@ -1,3 +1,7 @@
|
||||
2006-04-15 Alex Roitman <shura@gramps-project.org>
|
||||
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Adapt to
|
||||
ChildRefType.
|
||||
|
||||
2006-04-15 Don Allingham <don@gramps-project.org>
|
||||
* src/DisplayTabs.py: handle child type callback
|
||||
* src/Editors/_EditFamily.py: handle child type callback
|
||||
|
@ -1358,10 +1358,7 @@ class GrampsBSDDB(GrampsDbBase):
|
||||
|
||||
# Person upgrade
|
||||
# Needs to be run after the family upgrade completed.
|
||||
dummy_child_ref = ChildRef()
|
||||
default_frel = dummy_child_ref.frel
|
||||
default_mrel = dummy_child_ref.mrel
|
||||
|
||||
def_rel = ChildRefType._DEFAULT
|
||||
for handle in self.person_map.keys():
|
||||
info = self.person_map[handle]
|
||||
person = Person()
|
||||
@ -1423,7 +1420,7 @@ class GrampsBSDDB(GrampsDbBase):
|
||||
for (family_handle,mrel,frel) in parent_family_list:
|
||||
person.parent_family_list.append(family_handle)
|
||||
# Only change family is the relations are non-default
|
||||
if (mrel,frel) != (default_mrel[0],default_frel[0]):
|
||||
if (mrel,frel) != (def_rel,def_rel):
|
||||
family = self.get_family_from_handle(family_handle)
|
||||
child_handle_list = [ref.ref for ref in
|
||||
family.child_ref_list]
|
||||
|
Loading…
Reference in New Issue
Block a user