From 91210a5ececa4d226a449c2d2b8de6be7238806b Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 8 Mar 2006 22:01:08 +0000 Subject: [PATCH] Update svn: r6105 --- ChangeLog | 1 + src/Editors/_EditFamily.py | 5 +++-- src/GrampsDb/_GrampsBSDDB.py | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1997ec122..8ffa91864 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2006-03-08 Alex Roitman + * src/Editors/_EditFamily.py: Use tuple relations. * src/GramspDb/_GrampsBSDDB.py: Minor fixes. 2006-03-08 Don Allingham diff --git a/src/Editors/_EditFamily.py b/src/Editors/_EditFamily.py index 96bd541a1..dcc6d7c75 100644 --- a/src/Editors/_EditFamily.py +++ b/src/Editors/_EditFamily.py @@ -568,8 +568,9 @@ class EditFamily(EditPrimary): child = self.db.get_person_from_handle(handle) # fix child.add_parent_family_handle(handle, - RelLib.Person.CHILD_BIRTH, - RelLib.Person.CHILD_BIRTH) + (RelLib.Person.CHILD_BIRTH,''), + (RelLib.Person.CHILD_BIRTH,''), + ) self.db.commit_person(child,trans) self.db.add_family(self.obj,trans) diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index 369cd3dfa..41365e908 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -1049,6 +1049,10 @@ class GrampsBSDDB(GrampsDbBase): for key in transaction.reference_del: self.reference_map.delete(str(key),txn=self.txn) + if (len(transaction.reference_add)+len(transaction.reference_del)) > 0\ + and not self.UseTXN: + self.reference_map.sync() + # Commit BSD DB transaction -- DBTxn if self.UseTXN: self.txn.commit()