GEDCOM import: if a default source is created, attached date data for submitters was incorrectly stored as a Date object when it should be text.

svn: r18945
This commit is contained in:
Tim G L Lyons 2012-02-21 15:47:15 +00:00
parent a5c42e2975
commit b422c82edb

View File

@ -6317,8 +6317,12 @@ class GedcomParser(UpdateCallback):
@type state: CurrentState
"""
if self.use_def_src:
# Because there is a DATE tag, line.data is automatically converted
# to a Date object before getting to this point, so it has to be
# converted back to a string
text_date = str(line.data)
self.def_src.set_data_item(_("Publication date of source data"),
line.data)
text_date)
def __header_file(self, line, state):
"""