* src/GrampsDb/_ReadXML.py (stop_event): Properly import birth and
death from the old XML. svn: r6810
This commit is contained in:
		@@ -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.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user