* src/ReadGedcom.py (parse_person_event): Use TYPE field as the description of the event, if the event already has a name.

svn: r3535
This commit is contained in:
Alex Roitman 2004-09-11 23:24:08 +00:00
parent a8b3854d96
commit f3b80ac6b0
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-09-11 Alex Roitman <shura@alex.neuro.umn.edu>
* src/ReadGedcom.py (parse_person_event): Use TYPE field as
the description of the event, if the event already has a name.
2004-09-10 Alex Roitman <shura@alex.neuro.umn.edu> 2004-09-10 Alex Roitman <shura@alex.neuro.umn.edu>
* src/GrampsDbBase.py: Fix assert statements. * src/GrampsDbBase.py: Fix assert statements.

View File

@ -1203,6 +1203,8 @@ class GedcomParser:
else: else:
name = matches[2] name = matches[2]
event.set_name(name) event.set_name(name)
else:
event.set_description(matches[2])
elif matches[1] == "DATE": elif matches[1] == "DATE":
event.set_date_object(self.extract_date(matches[2])) event.set_date_object(self.extract_date(matches[2]))
elif matches[1] == "SOUR": elif matches[1] == "SOUR":