From 0ae2cf5f413ad6c6dda251d5b0643cda201d933a Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 16 Oct 2006 20:42:49 +0000 Subject: [PATCH] 2006-10-16 Alex Roitman * src/Editors/_EditPerson.py (_given_focus_out_event): Convert to unicode before guessing gender. svn: r7411 --- ChangeLog | 4 ++++ src/Editors/_EditPerson.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 62aca259f..08163999f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-10-16 Alex Roitman + * src/Editors/_EditPerson.py (_given_focus_out_event): Convert to + unicode before guessing gender. + 2006-10-15 Don Allingham * src/GrampsDb/_WriteGedcom.py: fix bad function call * src/glade/gramps.glade: consistent place name diff --git a/src/Editors/_EditPerson.py b/src/Editors/_EditPerson.py index 3f320cf3e..222cbbed9 100644 --- a/src/Editors/_EditPerson.py +++ b/src/Editors/_EditPerson.py @@ -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