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:33:33 +02:00
parent b62e0208c2
commit 26560d0590

View File

@ -507,11 +507,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):