fix update of person in relationship view
svn: r6204
This commit is contained in:
parent
792362fcc2
commit
8b31072204
@ -341,7 +341,6 @@ class EditFamily(EditPrimary):
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
def reload_people(self):
|
def reload_people(self):
|
||||||
print "REBUILDING!!!!"
|
|
||||||
fhandle = self.obj.get_father_handle()
|
fhandle = self.obj.get_father_handle()
|
||||||
self.update_father(fhandle)
|
self.update_father(fhandle)
|
||||||
|
|
||||||
@ -584,7 +583,6 @@ class EditFamily(EditPrimary):
|
|||||||
mother = self.dbstate.db.get_person_from_handle(mother_handle)
|
mother = self.dbstate.db.get_person_from_handle(mother_handle)
|
||||||
mfam = set(mother.get_family_handle_list())
|
mfam = set(mother.get_family_handle_list())
|
||||||
common = list(mfam.intersection(ffam))
|
common = list(mfam.intersection(ffam))
|
||||||
print common, self.obj.handle
|
|
||||||
if len(common) > 0:
|
if len(common) > 0:
|
||||||
if self.add_parent:
|
if self.add_parent:
|
||||||
clist = self.obj.get_child_handle_list()
|
clist = self.obj.get_child_handle_list()
|
||||||
@ -754,8 +752,11 @@ class EditFamily(EditPrimary):
|
|||||||
# add the family from children which have been addedna
|
# add the family from children which have been addedna
|
||||||
for handle in new_set.difference(orig_set):
|
for handle in new_set.difference(orig_set):
|
||||||
person = self.db.get_person_from_handle(handle)
|
person = self.db.get_person_from_handle(handle)
|
||||||
#person.remove_parent_family_handle(self.obj.handle)
|
person.add_parent_family_handle(self.obj.handle,
|
||||||
#self.db.commit_person(person,trans)
|
(RelLib.Person.CHILD_BIRTH,''),
|
||||||
|
(RelLib.Person.CHILD_BIRTH,''),
|
||||||
|
)
|
||||||
|
self.db.commit_person(person,trans)
|
||||||
|
|
||||||
self.db.commit_family(self.obj,trans)
|
self.db.commit_family(self.obj,trans)
|
||||||
self.db.transaction_commit(trans,_("Edit Family"))
|
self.db.transaction_commit(trans,_("Edit Family"))
|
||||||
|
Loading…
Reference in New Issue
Block a user