Check for empty place object

svn: r351
This commit is contained in:
Don Allingham 2001-08-20 23:18:30 +00:00
parent 983376317a
commit db3adf44e9

View File

@ -300,7 +300,10 @@ class IndividualPage:
continue continue
name = _(event.getName()) name = _(event.getName())
date = event.getDate() date = event.getDate()
if event.getPlace():
place = event.getPlace().get_title() place = event.getPlace().get_title()
else:
place = ""
description = event.getDescription() description = event.getDescription()
if date == "": if date == "":
if place == "": if place == "":
@ -346,7 +349,10 @@ class IndividualPage:
return return
name = event.getName() name = event.getName()
date = event.getDate() date = event.getDate()
if event.getPlace():
place = event.getPlace().get_title() place = event.getPlace().get_title()
else:
place = ""
description = event.getDescription() description = event.getDescription()
if date == "": if date == "":
if place == "": if place == "":