2006-05-23 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_ReadXML.py (start_eventref): Do not reset existing birth/deat reference. svn: r6758
This commit is contained in:
parent
ba37224b38
commit
b0e5e65046
@ -1,3 +1,7 @@
|
||||
2006-05-23 Alex Roitman <shura@gramps-project.org>
|
||||
* src/GrampsDb/_ReadXML.py (start_eventref): Do not reset existing
|
||||
birth/deat reference.
|
||||
|
||||
2006-05-23 Don Allingham <don@gramps-project.org>
|
||||
* src/DataViews/_FamilyView.py: more shading
|
||||
|
||||
|
@ -772,14 +772,15 @@ class GrampsParser(UpdateCallback):
|
||||
self.family.add_event_ref(self.eventref)
|
||||
elif self.person:
|
||||
event.personal = True
|
||||
if event.type == RelLib.EventType.BIRTH:
|
||||
if (event.type == RelLib.EventType.BIRTH) \
|
||||
and (self.person.birth_ref == None):
|
||||
self.person.birth_ref = self.eventref
|
||||
elif event.type == RelLib.EventType.DEATH:
|
||||
elif (event.type == RelLib.EventType.DEATH) \
|
||||
and (self.person.death_ref == None):
|
||||
self.person.death_ref = self.eventref
|
||||
else:
|
||||
self.person.add_event_ref(self.eventref)
|
||||
|
||||
|
||||
def start_attribute(self,attrs):
|
||||
self.attribute = RelLib.Attribute()
|
||||
self.attribute.conf = int(attrs.get("conf",2))
|
||||
|
Loading…
Reference in New Issue
Block a user