* src/ReadGedcom.py: grab description for birth and death events

* src/WriteGedcom.py: export description for birth and death events
* example/gedcom/sample.ged: add test case


svn: r4617
This commit is contained in:
Don Allingham
2005-05-18 20:27:02 +00:00
parent a4688d10ad
commit 1f25c6fd38
4 changed files with 18 additions and 3 deletions

View File

@ -1025,6 +1025,8 @@ class GedcomParser:
self.person.add_address(addr)
elif matches[1] == "BIRT":
event = RelLib.Event()
if matches[2]:
event.set_description(matches[2])
self.db.add_event(event, self.trans)
if self.person.get_birth_handle():
event.set_name("Alternate Birth")
@ -1043,6 +1045,8 @@ class GedcomParser:
self.db.commit_event(event, self.trans)
elif matches[1] == "DEAT":
event = RelLib.Event()
if matches[2]:
event.set_description(matches[2])
self.db.add_event(event, self.trans)
if self.person.get_death_handle():
event.set_name("Alternate Death")