svn: r6348
This commit is contained in:
Alex Roitman 2006-04-15 20:40:00 +00:00
parent 49a8a2e62c
commit c44c7c08db

View File

@ -1424,13 +1424,10 @@ class GrampsBSDDB(GrampsDbBase):
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]
try: index = child_handle_list.index(person.handle)
index = child_handle_list.index(person.handle)
except:
print child_handle_list, person.handle
child_ref = family.child_ref_list[index] child_ref = family.child_ref_list[index]
child_ref.frel = (frel,'') child_ref.frel.set(frel)
child_ref.mrel = (mrel,'') child_ref.mrel.set(mrel)
self.commit_family(family,trans) self.commit_family(family,trans)
# In all Attributes, convert type from string to a tuple # In all Attributes, convert type from string to a tuple