2007-02-26 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_GedcomParse.py: handle EVENTS with argument on the declaration line * src/GrampsDbUtils/_GedcomLex.py: handle EVENTS with argument on the declaration line svn: r8251
This commit is contained in:
parent
66ea62668c
commit
19f4c3ab91
@ -1,3 +1,9 @@
|
||||
2007-02-26 Don Allingham <don@gramps-project.org>
|
||||
* src/GrampsDbUtils/_GedcomParse.py: handle EVENTS with argument on
|
||||
the declaration line
|
||||
* src/GrampsDbUtils/_GedcomLex.py: handle EVENTS with argument on
|
||||
the declaration line
|
||||
|
||||
2007-02-26 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* src/RelLib/_AttributeType.py: Add WITNESS (used by GEDCOM parser to
|
||||
import textual event witness information
|
||||
|
@ -179,8 +179,11 @@ class GedLine:
|
||||
"""
|
||||
token = GED2GRAMPS.get(self.token_text)
|
||||
if token:
|
||||
event = RelLib.Event()
|
||||
event.set_description(self.data)
|
||||
event.set_type(token)
|
||||
self.token = TOKEN_GEVENT
|
||||
self.data = token
|
||||
self.data = event
|
||||
else:
|
||||
token = GED2ATTR.get(self.token_text)
|
||||
if token:
|
||||
|
@ -1460,10 +1460,10 @@ class GedcomParser(UpdateCallback):
|
||||
@param state: The current state
|
||||
@type state: CurrentState
|
||||
"""
|
||||
event = RelLib.Event()
|
||||
|
||||
event = line.data
|
||||
event.set_gramps_id(self.emapper.find_next())
|
||||
event_ref = RelLib.EventRef()
|
||||
event.set_gramps_id(self.emapper.find_next())
|
||||
event.set_type(line.data)
|
||||
self.dbase.add_event(event, self.trans)
|
||||
|
||||
sub_state = GedcomUtils.CurrentState()
|
||||
@ -2436,11 +2436,10 @@ class GedcomParser(UpdateCallback):
|
||||
@param state: The current state
|
||||
@type state: CurrentState
|
||||
"""
|
||||
event = RelLib.Event()
|
||||
event = line.data
|
||||
event.set_gramps_id(self.emapper.find_next())
|
||||
event_ref = RelLib.EventRef()
|
||||
event_ref.set_role(RelLib.EventRoleType.FAMILY)
|
||||
event.set_gramps_id(self.emapper.find_next())
|
||||
event.set_type(line.data)
|
||||
self.dbase.add_event(event, self.trans)
|
||||
|
||||
sub_state = GedcomUtils.CurrentState()
|
||||
|
Loading…
Reference in New Issue
Block a user