8033: cannot generate Narrative Web report with gendex option enabled, was previous place model (location fields)

This commit is contained in:
Jérôme Rapinat 2014-09-23 16:30:55 +02:00
parent d8a37c1089
commit b22b66877e

View File

@ -508,11 +508,7 @@ def get_gendex_data(database, event_ref):
if place_handle:
place = database.get_place_from_handle(place_handle)
if place:
location = get_main_location(self.dbase_, place)
poe = ", ".join(l for l in [
location.get(PlaceType.CITY, '').strip(),
location.get(PlaceType.STATE, '').strip(),
location.get(PlaceType.COUNTRY, '').strip()] if l)
poe = place.get_title()
return doe, poe
def format_date(date):