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 96230f7592
commit 0ae2cf5f41
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>
* src/GrampsDb/_WriteGedcom.py: fix bad function call
* src/glade/gramps.glade: consistent place name

View File

@ -440,7 +440,8 @@ class EditPerson(EditPrimary):
if not self.should_guess_gender:
return False
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)
except:
return False