svn: r7710
This commit is contained in:
parent
d47ca2efc3
commit
23f12541d5
@ -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"),
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user