* src/GrampsDb/_ReadXML.py (stop_event): Properly import birth and

death from the old XML.


svn: r6810
This commit is contained in:
Alex Roitman 2006-05-29 03:00:07 +00:00
parent e086d75254
commit ba640760b1
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,6 @@
2006-05-28 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_ReadXML.py (stop_event): Properly import birth and
death from the old XML.
* src/Editors/_EditFamily.py (EditFamily.save): Typo.
* src/plugins/Verify.py: Add double-clicking and mark/unmark/invert.

View File

@ -1440,15 +1440,15 @@ class GrampsParser(UpdateCallback):
ref.ref = self.event.handle
ref.private = self.event.private
ref.role.set(RelLib.EventRoleType.PRIMARY)
if self.event.type == RelLib.EventType.BIRTH:
self.person.birth_ref = ref
elif self.event.type == RelLib.EventType.DEATH:
self.person.death_ref = ref
if (self.event.type == RelLib.EventType.BIRTH) \
and (self.person.get_birth_ref() == None):
self.person.set_birth_ref(ref)
elif (self.event.type == RelLib.EventType.DEATH) \
and (self.person.get_death_ref() == None):
self.person.set_death_ref(ref)
else:
self.person.add_event_ref(ref)
# FIXME: re-enable when event types are fixed.
if self.event.get_description() == "" and \
self.event.get_type() != RelLib.EventType.CUSTOM:
if self.family: