From a0a04bad773a2d30a2bff30d82fa4622666f991f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 15 Jan 2002 02:41:35 +0000 Subject: [PATCH] Fixed OpenOfficeDoc formating problem (cnv not defined) svn: r698 --- src/Config.py | 6 +- src/EditPerson.py | 2 +- src/Find.py | 2 +- src/OpenOfficeDoc.py | 35 ++--- src/RelImage.py | 2 +- src/SelectChild.py | 11 +- src/const.py | 310 +++++++++++++++++++++++++++++++------------ src/gramps.glade | 36 ++--- 8 files changed, 264 insertions(+), 140 deletions(-) diff --git a/src/Config.py b/src/Config.py index 66f64915b..743540ff8 100644 --- a/src/Config.py +++ b/src/Config.py @@ -54,10 +54,10 @@ from intl import gettext _ = gettext _surname_styles = [ - _("North American (Father's surname)"), + _("Father's surname"), _("None"), - _("Latin American (Combination of mother's and father's surname)"), - _("Icelandic (Father's surname with son/daughter indicator"), + _("Latin American style (Combination of mother's and father's surname)"), + _("Icelandic style (Father's surname with son/daughter indicator)"), ] _date_format_list = [ diff --git a/src/EditPerson.py b/src/EditPerson.py index 33da954f4..423ed8af5 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -233,7 +233,7 @@ class EditPerson: self.window.editable_enters(self.dplace); if Config.autocomp: - AutoComp.AutoComp(self.surname_field,const.surnames) + self.comp = AutoComp.AutoComp(self.surname_field,const.surnames) self.gid.set_text(person.getId()) self.gid.set_editable(Config.id_edit) diff --git a/src/Find.py b/src/Find.py index b5fc17927..2a6f21ce1 100644 --- a/src/Find.py +++ b/src/Find.py @@ -58,7 +58,7 @@ class Find: self.nlist.append(n.getPrimaryName().getName()) if Config.autocomp: - AutoComp.AutoComp(self.entry,self.nlist) + self.comp = AutoComp.AutoComp(self.entry,self.nlist) self.next = self.xml.get_widget("next") self.top.editable_enters(self.entry) diff --git a/src/OpenOfficeDoc.py b/src/OpenOfficeDoc.py index 9e6e31e5a..617c543f0 100644 --- a/src/OpenOfficeDoc.py +++ b/src/OpenOfficeDoc.py @@ -122,7 +122,7 @@ class OpenOfficeDoc(TextDoc): self.f.write(style_name + '.' + str(chr(ord('A')+col)) +'" ') self.f.write('style:family="table-column">') width = table_width * float(style.get_column_width(col)/100.0) - width_str = cnv("%.4f",width) + width_str = "%.4f" % width self.f.write('' % width_str) self.f.write('\n') @@ -132,8 +132,7 @@ class OpenOfficeDoc(TextDoc): self.f.write(cell) self.f.write('" style:family="table-cell">\n') self.f.write('\n') @@ -436,19 +431,17 @@ class OpenOfficeDoc(TextDoc): self.f.write('\n') self.f.write('\n') self.f.write('\n') - self.f.write('\n') self.f.write('mcombo Thu, 18 Oct 2001 01:59:11 GMT - True + False True 0 Birth @@ -6763,7 +6763,7 @@ Unknown fcombo Thu, 18 Oct 2001 01:59:26 GMT - True + False True 0 Birth @@ -6771,14 +6771,13 @@ Unknown - GtkCombo - surname_combo - False - True - False - True - False - + GtkEntry + surname + True + True + True + 0 + 1 2 @@ -6793,23 +6792,6 @@ Unknown True False - - - GtkEntry - GtkCombo:entry - childSurname - True - - insert_text - on_combo_insert_text - surname_combo - Thu, 01 Nov 2001 02:12:35 GMT - - True - True - 0 - -