2006-10-16 Alex Roitman <shura@gramps-project.org>

* src/Editors/_EditPerson.py (_given_focus_out_event): Convert to
	unicode before guessing gender.



svn: r7411
This commit is contained in:
Alex Roitman 2006-10-16 20:42:49 +00:00
parent 8ab86af032
commit 6ca5413da6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-10-16 Alex Roitman <shura@gramps-project.org>
* src/Editors/_EditPerson.py (_given_focus_out_event): Convert to
unicode before guessing gender.
2006-10-15 Don Allingham <don@gramps-project.org> 2006-10-15 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py: fix bad function call * src/GrampsDb/_WriteGedcom.py: fix bad function call
* src/glade/gramps.glade: consistent place name * src/glade/gramps.glade: consistent place name

View File

@ -440,7 +440,8 @@ class EditPerson(EditPrimary):
if not self.should_guess_gender: if not self.should_guess_gender:
return False return False
try: try:
gender_type = self.db.genderStats.guess_gender(entry.get_text()) gender_type = self.db.genderStats.guess_gender(
unicode(entry.get_text()))
self.gender.force(gender_type) self.gender.force(gender_type)
except: except:
return False return False