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

View File

@ -1,4 +1,5 @@
2006-03-08 Alex Roitman <shura@gramps-project.org>
* src/Editors/_EditFamily.py: Use tuple relations.
* src/GramspDb/_GrampsBSDDB.py: Minor fixes.
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)
# 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)

View File

@ -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()