Update
svn: r6105
This commit is contained in:
parent
3af54ec416
commit
0dc5b7dc6a
@ -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>
|
||||||
|
@ -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)
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user