* src/ReadGedcom.py (parse_individual): Set Adoption event properly

svn: r4396
This commit is contained in:
Martin Hawlisch
2005-04-21 11:52:08 +00:00
parent d43ec2d13c
commit 6fa55ea96b
2 changed files with 4 additions and 2 deletions

View File

@ -1015,10 +1015,11 @@ class GedcomParser:
self.db.commit_event(event, self.trans)
elif matches[1] == "ADOP":
event = RelLib.Event()
self.db.add_event(event, self.trans)
event.set_name("Adopted")
self.person.add_event_handle(event.get_handle())
self.parse_adopt_event(event,2)
self.db.add_event(event, self.trans)
self.db.commit_event(event, self.trans)
elif matches[1] == "DEAT":
event = RelLib.Event()
self.db.add_event(event, self.trans)