2007-02-09 Don Allingham <don@gramps-project.org>

* src/plugins/Check.py: fix illegal family events
	* src/GrampsDbUtils/_GedcomParse.py: improve parsing
	* src/GrampsDbUtils/_GedcomLex.py: improve parsing
	* src/GrampsDbUtils/_GedTokens.py: improve parsing



svn: r8079
This commit is contained in:
Don Allingham
2007-02-09 23:16:57 +00:00
parent f845b6f887
commit da92a9431b
5 changed files with 503 additions and 412 deletions

View File

@ -696,7 +696,10 @@ class CheckIntegrity:
if not event:
# The event referenced by the family
# does not exist in the database
family.get_event_list().remove(event_ref)
print family.gramps_id
nlist = [ x for x in family.get_event_ref_list() \
if x.ref != event_handle]
family.set_event_ref_list(nlist)
self.db.commit_family(family,self.trans)
self.invalid_events.append(key)
elif type(family.get_event_ref_list()) != list: