* src/FamilyView.py: Correct constants for birth relationship.

svn: r4150
This commit is contained in:
Alex Roitman 2005-03-10 00:28:57 +00:00
parent 4c545b90d0
commit ce1d3b0ed8
2 changed files with 39 additions and 37 deletions

View File

@ -21,6 +21,8 @@
* src/rule.glade: Change button label; add "need to close" label.
* src/EditPlace.py: Typo.
* src/FamilyView.py: Correct constants for birth relationship.
2005-03-09 Don Allingham <don@gramps-project.org>
* src/NameEdit.py: assign date on close

View File

@ -777,7 +777,7 @@ class FamilyView:
self.family.set_mother_handle(self.person.get_handle())
self.family.add_child_handle(epo.person.get_handle())
epo.person.add_parent_family_handle(self.family.get_handle(),"Birth","Birth")
epo.person.add_parent_family_handle(self.family.get_handle(),RelLib.Person.CHILD_REL_BIRTH,RelLib.Person.CHILD_REL_BIRTH)
self.parent.db.commit_person(epo.person,trans)
self.parent.db.commit_family(self.family,trans)
self.parent.db.transaction_commit(trans,_("Add Child to Family"))