* 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 1d225c91db
commit eee0ce5a1d
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,6 @@
2006-05-28 Alex Roitman <shura@gramps-project.org> 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/Editors/_EditFamily.py (EditFamily.save): Typo.
* src/plugins/Verify.py: Add double-clicking and mark/unmark/invert. * 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.ref = self.event.handle
ref.private = self.event.private ref.private = self.event.private
ref.role.set(RelLib.EventRoleType.PRIMARY) ref.role.set(RelLib.EventRoleType.PRIMARY)
if self.event.type == RelLib.EventType.BIRTH: if (self.event.type == RelLib.EventType.BIRTH) \
self.person.birth_ref = ref and (self.person.get_birth_ref() == None):
elif self.event.type == RelLib.EventType.DEATH: self.person.set_birth_ref(ref)
self.person.death_ref = ref elif (self.event.type == RelLib.EventType.DEATH) \
and (self.person.get_death_ref() == None):
self.person.set_death_ref(ref)
else: else:
self.person.add_event_ref(ref) self.person.add_event_ref(ref)
# FIXME: re-enable when event types are fixed.
if self.event.get_description() == "" and \ if self.event.get_description() == "" and \
self.event.get_type() != RelLib.EventType.CUSTOM: self.event.get_type() != RelLib.EventType.CUSTOM:
if self.family: if self.family: