svn: r6105
This commit is contained in:
Alex Roitman 2006-03-08 22:01:08 +00:00
parent dd42490860
commit 91210a5ece
3 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,5 @@
2006-03-08 Alex Roitman <shura@gramps-project.org> 2006-03-08 Alex Roitman <shura@gramps-project.org>
* src/Editors/_EditFamily.py: Use tuple relations.
* src/GramspDb/_GrampsBSDDB.py: Minor fixes. * src/GramspDb/_GrampsBSDDB.py: Minor fixes.
2006-03-08 Don Allingham <don@gramps-project.org> 2006-03-08 Don Allingham <don@gramps-project.org>

View File

@ -568,8 +568,9 @@ class EditFamily(EditPrimary):
child = self.db.get_person_from_handle(handle) child = self.db.get_person_from_handle(handle)
# fix # fix
child.add_parent_family_handle(handle, 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.commit_person(child,trans)
self.db.add_family(self.obj,trans) self.db.add_family(self.obj,trans)

View File

@ -1049,6 +1049,10 @@ class GrampsBSDDB(GrampsDbBase):
for key in transaction.reference_del: for key in transaction.reference_del:
self.reference_map.delete(str(key),txn=self.txn) 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 # Commit BSD DB transaction -- DBTxn
if self.UseTXN: if self.UseTXN:
self.txn.commit() self.txn.commit()