fixed some problems with Place objects

svn: r361
This commit is contained in:
Jason Zedlitz 2001-08-23 13:28:53 +00:00
parent 02a53a7c44
commit bdf0c6dfbf

View File

@ -164,7 +164,10 @@ class FamilyGroup:
self.doc.end_cell() self.doc.end_cell()
self.doc.start_cell("TextContentsEnd") self.doc.start_cell("TextContentsEnd")
self.doc.start_paragraph('Normal') self.doc.start_paragraph('Normal')
self.doc.write_text(birth.getPlace().get_title()) if birth.getPlace() != None:
self.doc.write_text(birth.getPlace().get_title())
else:
self.doc.write_text("")
self.doc.end_paragraph() self.doc.end_paragraph()
self.doc.end_cell() self.doc.end_cell()
self.doc.end_row() self.doc.end_row()
@ -182,7 +185,10 @@ class FamilyGroup:
self.doc.end_cell() self.doc.end_cell()
self.doc.start_cell("TextContentsEnd") self.doc.start_cell("TextContentsEnd")
self.doc.start_paragraph('Normal') self.doc.start_paragraph('Normal')
self.doc.write_text(death.getPlace().get_title()) if death.getPlace() != None:
self.doc.write_text(death.getPlace().get_title())
else:
self.doc.write_text("")
self.doc.end_paragraph() self.doc.end_paragraph()
self.doc.end_cell() self.doc.end_cell()
self.doc.end_row() self.doc.end_row()
@ -228,7 +234,10 @@ class FamilyGroup:
def dump_child_event(self,text,name,event): def dump_child_event(self,text,name,event):
if event: if event:
date = event.getDate() date = event.getDate()
place = event.getPlace().get_title() if event.getPlace() != None:
place = event.getPlace().get_title()
else:
place = ""
else: else:
date = "" date = ""
place = "" place = ""