svn: r7711

This commit is contained in:
Don Allingham 2006-11-26 22:05:35 +00:00
parent dfd4069827
commit 6f593329ae

View File

@ -106,12 +106,11 @@ class EditPerson(EditPrimary):
return RelLib.Person()
def get_menu_title(self):
pname = self.obj.get_primary_name()
if pname.is_empty():
title = _('New Person')
else:
name = NameDisplay.displayer.display_name(pname)
if self.obj.get_handle():
name = NameDisplay.displayer.display(self.obj)
title = _('Person') + ': %s' % name
else:
title = _('New Person')
return title
def _local_init(self):