From 23f12541d5eda9c083639f9bebe34abe523a8b38 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 26 Nov 2006 21:50:21 +0000 Subject: [PATCH] svn: r7710 --- gramps2/src/Editors/_EditFamily.py | 4 ++-- gramps2/src/Editors/_EditPerson.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps2/src/Editors/_EditFamily.py b/gramps2/src/Editors/_EditFamily.py index acf33eaa1..c60307b21 100644 --- a/gramps2/src/Editors/_EditFamily.py +++ b/gramps2/src/Editors/_EditFamily.py @@ -782,7 +782,7 @@ class EditFamily(EditPrimary): if self.obj.get_father_handle() in child_list: from QuestionDialog import ErrorDialog - father = db.get_person_from_handle(self.obj.get_father_handle()) + father = self.db.get_person_from_handle(self.obj.get_father_handle()) name = "%s [%s]" % (NameDisplay.displayer.display(father), father.gramps_id) ErrorDialog(_("A father cannot be his own child"), @@ -792,7 +792,7 @@ class EditFamily(EditPrimary): elif self.obj.get_mother_handle() in child_list: from QuestionDialog import ErrorDialog - mother = db.get_person_from_handle(self.obj.get_mother_handle()) + mother = self.db.get_person_from_handle(self.obj.get_mother_handle()) name = "%s [%s]" % (NameDisplay.displayer.display(mother), mother.gramps_id) ErrorDialog(_("A mother cannot be her own child"), diff --git a/gramps2/src/Editors/_EditPerson.py b/gramps2/src/Editors/_EditPerson.py index dfb3fe99d..cb2f64fd7 100644 --- a/gramps2/src/Editors/_EditPerson.py +++ b/gramps2/src/Editors/_EditPerson.py @@ -110,8 +110,9 @@ class EditPerson(EditPrimary): if pname.is_empty(): title = _('New Person') else: - name = NameDisplay.displayer.display_name(self.pname) + name = NameDisplay.displayer.display_name(pname) title = _('Person') + ': %s' % name + return title def _local_init(self): """