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>
|
2006-04-15 Don Allingham <don@gramps-project.org>
|
||||||
* src/DisplayTabs.py: handle child type callback
|
* src/DisplayTabs.py: handle child type callback
|
||||||
* src/Editors/_EditFamily.py: handle child type callback
|
* src/Editors/_EditFamily.py: handle child type callback
|
||||||
|
@ -1358,10 +1358,7 @@ class GrampsBSDDB(GrampsDbBase):
|
|||||||
|
|
||||||
# Person upgrade
|
# Person upgrade
|
||||||
# Needs to be run after the family upgrade completed.
|
# Needs to be run after the family upgrade completed.
|
||||||
dummy_child_ref = ChildRef()
|
def_rel = ChildRefType._DEFAULT
|
||||||
default_frel = dummy_child_ref.frel
|
|
||||||
default_mrel = dummy_child_ref.mrel
|
|
||||||
|
|
||||||
for handle in self.person_map.keys():
|
for handle in self.person_map.keys():
|
||||||
info = self.person_map[handle]
|
info = self.person_map[handle]
|
||||||
person = Person()
|
person = Person()
|
||||||
@ -1423,7 +1420,7 @@ class GrampsBSDDB(GrampsDbBase):
|
|||||||
for (family_handle,mrel,frel) in parent_family_list:
|
for (family_handle,mrel,frel) in parent_family_list:
|
||||||
person.parent_family_list.append(family_handle)
|
person.parent_family_list.append(family_handle)
|
||||||
# Only change family is the relations are non-default
|
# 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)
|
family = self.get_family_from_handle(family_handle)
|
||||||
child_handle_list = [ref.ref for ref in
|
child_handle_list = [ref.ref for ref in
|
||||||
family.child_ref_list]
|
family.child_ref_list]
|
||||||
|
Loading…
Reference in New Issue
Block a user