NarrativeWeb: Bug fix for #4203.

svn: r15827
This commit is contained in:
Rob G. Healey 2010-08-29 03:39:43 +00:00
parent 37697f48a0
commit 8edf5690a4

View File

@ -6266,20 +6266,19 @@ def _get_short_name(gender, name):
def __get_person_keyname(db, handle): def __get_person_keyname(db, handle):
""" .... """ """ .... """
person = db.get_person_from_handle(handle) person = db.get_person_from_handle(handle)
return person.get_primary_name().get_surname() if person:
return person.get_primary_name().get_surname()
return " "
def __get_place_keyname(db, handle): def __get_place_keyname(db, handle):
""" ... """ """ ... """
place = db.get_place_from_handle(handle) place = db.get_place_from_handle(handle)
if place: if place:
place_name = ReportUtils.place_name(db, handle) place_name = place.get_title()
if place_name: if place_name:
return place_name return place_name
else: return " "
return ""
else:
return ""
def first_letter(string): def first_letter(string):
if string: if string: