From 87ee404c3b395347154d39364d3266697bd77eae Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 10 Dec 2007 14:20:22 +0000 Subject: [PATCH] Gave Ed a middle name, fixed error in %codes svn: r9480 --- src/GrampsCfg.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GrampsCfg.py b/src/GrampsCfg.py index 29f8daedb..f4b58acb9 100644 --- a/src/GrampsCfg.py +++ b/src/GrampsCfg.py @@ -252,7 +252,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): # a dummy name to be used in the examples self.examplename = Name() self.examplename.set_title('Dr.') - self.examplename.set_first_name('Edwin') + self.examplename.set_first_name('Edwin Jose') self.examplename.set_surname_prefix('Rev.') self.examplename.set_surname('Smith') self.examplename.set_suffix('Sr') @@ -344,6 +344,8 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): for word in new_text.split(): if word == word.upper(): retval.append(word) + elif len(word) > 0 and word[0] == '%': + retval.append(word) else: retval.append(word.title()) new_text = " ".join(retval) @@ -517,11 +519,11 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): # Display name: self.examplename = Name() self.examplename.set_title('Dr.') - self.examplename.set_first_name('Edwin') + self.examplename.set_first_name('Edwin Jose') self.examplename.set_surname_prefix('Rev.') self.examplename.set_surname('Smith') self.examplename.set_suffix('Sr') - self.examplename.set_patronymic('Patronymic') + self.examplename.set_patronymic('Wilson') self.examplename.set_call_name('Ed') # get the model for the combo and the treeview active = _nd.get_default_format()