Fixed source_ref problem with events
svn: r146
This commit is contained in:
parent
26d1c363bc
commit
767f0fc48c
@ -275,9 +275,9 @@ class EditPerson:
|
|||||||
if Config.show_detail:
|
if Config.show_detail:
|
||||||
if name.getNote() != "":
|
if name.getNote() != "":
|
||||||
attr = "N"
|
attr = "N"
|
||||||
if name.getSourceRef():
|
if name.getSourceRef().getBase():
|
||||||
attr = attr + "S"
|
attr = attr + "S"
|
||||||
self.name_list.append([name.getName()])
|
self.name_list.append([name.getName(),attr])
|
||||||
self.name_list.set_row_data(self.name_index,name)
|
self.name_list.set_row_data(self.name_index,name)
|
||||||
self.name_index = self.name_index + 1
|
self.name_index = self.name_index + 1
|
||||||
|
|
||||||
@ -335,7 +335,7 @@ class EditPerson:
|
|||||||
if Config.show_detail:
|
if Config.show_detail:
|
||||||
if attr.getNote() != "":
|
if attr.getNote() != "":
|
||||||
detail = "N"
|
detail = "N"
|
||||||
if attr.getSourceRef():
|
if attr.getSourceRef().getBase():
|
||||||
detail = detail + "S"
|
detail = detail + "S"
|
||||||
self.attr_list.append([attr.getType(),attr.getValue(),detail])
|
self.attr_list.append([attr.getType(),attr.getValue(),detail])
|
||||||
self.attr_list.set_row_data(self.attr_index,attr)
|
self.attr_list.set_row_data(self.attr_index,attr)
|
||||||
@ -368,7 +368,7 @@ class EditPerson:
|
|||||||
if Config.show_detail:
|
if Config.show_detail:
|
||||||
if address.getNote() != "":
|
if address.getNote() != "":
|
||||||
detail = "N"
|
detail = "N"
|
||||||
if address.getSourceRef():
|
if address.getSourceRef().getBase():
|
||||||
detail = detail + "S"
|
detail = detail + "S"
|
||||||
location = address.getCity() + " " + address.getState() + " " + \
|
location = address.getCity() + " " + address.getState() + " " + \
|
||||||
address.getCountry()
|
address.getCountry()
|
||||||
@ -404,7 +404,7 @@ class EditPerson:
|
|||||||
if Config.show_detail:
|
if Config.show_detail:
|
||||||
if event.getNote() != "":
|
if event.getNote() != "":
|
||||||
attr = "N"
|
attr = "N"
|
||||||
if event.getSourceRef():
|
if event.getSourceRef().getBase():
|
||||||
attr = attr + "S"
|
attr = attr + "S"
|
||||||
self.event_list.append([event.getName(),event.getQuoteDate(),\
|
self.event_list.append([event.getName(),event.getQuoteDate(),\
|
||||||
event.getPlace(),attr])
|
event.getPlace(),attr])
|
||||||
|
@ -462,7 +462,7 @@ class Event:
|
|||||||
self.date = Date()
|
self.date = Date()
|
||||||
self.description = ""
|
self.description = ""
|
||||||
self.name = ""
|
self.name = ""
|
||||||
self.source_ref = None
|
self.source_ref = SourceRef()
|
||||||
self.note = Note()
|
self.note = Note()
|
||||||
|
|
||||||
def set(self,name,date,place,description):
|
def set(self,name,date,place,description):
|
||||||
|
Loading…
Reference in New Issue
Block a user