* src/plugins/Check.py (check_parent_relationships): typo

svn: r4239
This commit is contained in:
Martin Hawlisch 2005-03-26 15:00:05 +00:00
parent 501596d92a
commit bbb46e93c6
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
* src/plugins/Check.py: Add check for child handle in family, that * src/plugins/Check.py: Add check for child handle in family, that
does no longer exist in database does no longer exist in database
* src/plugins/Check.py (check_parent_relationships): typo
2005-03-25 Richard Taylor <rjt-gramps@thegrindstone.me.uk> 2005-03-25 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/ScratchPad.py (ScratchPadWindow): moved content of pad to a * src/ScratchPad.py (ScratchPadWindow): moved content of pad to a
class attribute so that it is preserved when the pad is closed. class attribute so that it is preserved when the pad is closed.

View File

@ -234,8 +234,8 @@ class CheckIntegrity:
self.db.remove_family(family_handle,self.trans) self.db.remove_family(family_handle,self.trans)
def check_parent_relationships(self): def check_parent_relationships(self):
for key in self.db.get_family_handles(): for family_handle in self.db.get_family_handles():
family = self.db.get_family_from_handle(key) family = self.db.get_family_from_handle(family_handle)
mother_handle = family.get_mother_handle() mother_handle = family.get_mother_handle()
father_handle = family.get_father_handle() father_handle = family.get_father_handle()
if father_handle: if father_handle: