2006-08-27 Don Allingham <don@gramps-project.org>

* src/GrampsDb/_ReadGedcom.py: fix parsing index to correctly
	identify levels for a RESI tag



svn: r7279
This commit is contained in:
Don Allingham 2006-08-27 21:28:14 +00:00
parent 912a73371f
commit 1c03e540ff
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-08-27 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: fix parsing index to correctly
identify levels for a RESI tag
2006-08-27 Alex Roitman <shura@gramps-project.org> 2006-08-27 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py (GedcomWriter.gui_setup): Add a * src/GrampsDb/_WriteGedcom.py (GedcomWriter.gui_setup): Add a
dialog about the researcher information. dialog about the researcher information.

View File

@ -2792,7 +2792,6 @@ class GedcomParser(UpdateCallback):
note = "" note = ""
while True: while True:
matches = self.get_next() matches = self.get_next()
if self.level_is_finished(matches, state.level+1): if self.level_is_finished(matches, state.level+1):
break break
elif matches[1] == TOKEN_DATE: elif matches[1] == TOKEN_DATE:
@ -2814,7 +2813,7 @@ class GedcomParser(UpdateCallback):
note = self.parse_note(matches, addr, state.level+1, '') note = self.parse_note(matches, addr, state.level+1, '')
elif matches[1] in (TOKEN_IGNORE, TOKEN_CAUS, TOKEN_STAT, elif matches[1] in (TOKEN_IGNORE, TOKEN_CAUS, TOKEN_STAT,
TOKEN_TEMP, TOKEN_OBJE, TOKEN_TYPE): TOKEN_TEMP, TOKEN_OBJE, TOKEN_TYPE):
self.ignore_sub_junk(state.level+1) self.ignore_sub_junk(state.level+2)
else: else:
self.not_recognized(state.level+1) self.not_recognized(state.level+1)