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

* src/GrampsDbUtils/_GedcomTokens.py: fix typo
	* src/GrampsDbUtils/_GedcomLex.py: fix typo



svn: r8972
This commit is contained in:
Don Allingham 2007-09-13 15:03:20 +00:00
parent 997252630b
commit a28028f541
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-09-13 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_GedcomTokens.py: fix typo
* src/GrampsDbUtils/_GedcomLex.py: fix typo
2007-09-13 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/lineage.py: Final touches, loop detection

View File

@ -365,7 +365,7 @@ class Reader:
except:
continue
token = tokens.get(line[1], GedcomTokens.TOKEN_UNKNOWN)
token = GedcomTokens.TOKENS.get(line[1], GedcomTokens.TOKEN_UNKNOWN)
data = (level, token, line[2], line[1], self.index)
func = self.func_map.get(data[1])

View File

@ -140,7 +140,7 @@ TOKEN_LATI = 121
TOKEN_LONG = 122
TOKEN_FACT = 123
tokens = {
TOKENS = {
"HEAD" : TOKEN_HEAD, "MEDI" : TOKEN_MEDI,
"HEADER" : TOKEN_HEAD, "TRAILER" : TOKEN_TRLR,
"CALL_NUMBER" : TOKEN_CALN, "MEDIA" : TOKEN_MEDI,