* src/GrampsDbUtils/_ReadGedcom.py: fix value from encoding overide

menu

2007-07-17  Don Allingham  <don@gramps-project.org>


svn: r8735
This commit is contained in:
Don Allingham 2007-07-18 04:33:20 +00:00
parent 582c56e11e
commit ac39ec2207
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-07-17 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_ReadGedcom.py: fix value from encoding overide
menu
2007-07-17 Don Allingham <don@gramps-project.org>
* src/Editors/_EditSourceRef.py: remove text tab
* src/Editors/_EditRepoRef.py: Add privacy to reporef

View File

@ -60,7 +60,8 @@ def importData(database, filename, callback=None, use_trans=False):
code.set_active(0)
dialog = top.get_widget('encoding')
dialog.run()
code_set = code.get_active()
enc = ['ANSEL', 'ANSEL', 'ANSI', 'ASCII', 'UTF-8']
code_set = enc[ code.get_active()]
dialog.destroy()
else:
code_set = ""
@ -79,7 +80,6 @@ def import2(database, filename, callback, code_set, use_trans):
if code_set:
np.set_encoding(code_set)
ifile.seek(0)
gedparse = GedcomParser(database, ifile, filename, callback, np)
except IOError, msg: