* src/DataViews/_PedigreeView.py: Fix ChildRef, Show person references

* src/Editors/_EditFamily.py: Typo
* src/GrampsDb/_GrampsDbBase.py (get_active_person): Handle case of no active person
* src/plugins/TestcaseGenerator.py: really generate shared events; use new GrampsType; randomize name type
* src/DataViews/_PersonView.py: DnD only for lines of persons; Fix set for python 2.3; fix get_parent_family_handle_list usage



svn: r6342
This commit is contained in:
Martin Hawlisch
2006-04-14 12:39:17 +00:00
parent 2f16d73b53
commit 75e4f7b39b
6 changed files with 61 additions and 28 deletions

View File

@@ -826,9 +826,9 @@ class EditFamily(EditPrimary):
# for each child, add the family handle to the child
for ref in self.obj.get_child_ref_list():
child = self.db.get_person_from_handle(handle)
child = self.db.get_person_from_handle(ref.ref)
# fix - relationships need to be extracted from the list
child.add_parent_family_ref(ref)
child.add_parent_family_handle(self.obj.handle)
self.db.commit_person(child,trans)
self.db.add_family(self.obj,trans)
@@ -878,4 +878,3 @@ class EditFamily(EditPrimary):
self.db.transaction_commit(trans,_("Edit Family"))
self.close_window()