svn: r7710

This commit is contained in:
Don Allingham 2006-11-26 21:50:21 +00:00
parent d47ca2efc3
commit 23f12541d5
2 changed files with 4 additions and 3 deletions

View File

@ -782,7 +782,7 @@ class EditFamily(EditPrimary):
if self.obj.get_father_handle() in child_list: if self.obj.get_father_handle() in child_list:
from QuestionDialog import ErrorDialog 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), name = "%s [%s]" % (NameDisplay.displayer.display(father),
father.gramps_id) father.gramps_id)
ErrorDialog(_("A father cannot be his own child"), ErrorDialog(_("A father cannot be his own child"),
@ -792,7 +792,7 @@ class EditFamily(EditPrimary):
elif self.obj.get_mother_handle() in child_list: elif self.obj.get_mother_handle() in child_list:
from QuestionDialog import ErrorDialog 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), name = "%s [%s]" % (NameDisplay.displayer.display(mother),
mother.gramps_id) mother.gramps_id)
ErrorDialog(_("A mother cannot be her own child"), ErrorDialog(_("A mother cannot be her own child"),

View File

@ -110,8 +110,9 @@ class EditPerson(EditPrimary):
if pname.is_empty(): if pname.is_empty():
title = _('New Person') title = _('New Person')
else: else:
name = NameDisplay.displayer.display_name(self.pname) name = NameDisplay.displayer.display_name(pname)
title = _('Person') + ': %s' % name title = _('Person') + ': %s' % name
return title
def _local_init(self): def _local_init(self):
""" """