From 8b939198b87ea0b8617abc70267f50db6b5ff9e7 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 24 Apr 2006 21:46:54 +0000 Subject: [PATCH] fix typo svn: r6431 --- src/Config/_GrampsGconfKeys.py | 1 - src/Config/_GrampsIniKeys.py | 8 ++++---- src/Config/__init__.py | 1 + src/ViewManager.py | 2 -- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Config/_GrampsGconfKeys.py b/src/Config/_GrampsGconfKeys.py index eccfc50bc..091374d01 100644 --- a/src/Config/_GrampsGconfKeys.py +++ b/src/Config/_GrampsGconfKeys.py @@ -37,7 +37,6 @@ except ImportError: gconf = gnome.gconf import gobject -import os import Errors from _GrampsConfigKeys import default_value diff --git a/src/Config/_GrampsIniKeys.py b/src/Config/_GrampsIniKeys.py index 5f4175f17..5cf672c8e 100644 --- a/src/Config/_GrampsIniKeys.py +++ b/src/Config/_GrampsIniKeys.py @@ -163,19 +163,19 @@ client = IniKeyClient(os.path.join(const.home_dir,"keys.ini")) def get_date_format(_date_format_list=[]): - return get_int(Config.DATE_FORMAT, + return get_int(DATE_FORMAT, range(len(_date_format_list))) def save_date_format(val,_date_format_list=[]): - set_int(Config.DATE_FORMAT, val, + set_int(DATE_FORMAT, val, range(len(_date_format_list))) def get_name_format(_name_format_list): - return get_int(Config.NAME_FORMAT, + return get_int(NAME_FORMAT, range(len(_name_format_list))) def save_name_format(val,_name_format_list): - set_int(Config.NAME_FORMAT, val, + set_int(NAME_FORMAT, val, range(len(_name_format_list))) diff --git a/src/Config/__init__.py b/src/Config/__init__.py index a0a4f0507..9535ff3d0 100644 --- a/src/Config/__init__.py +++ b/src/Config/__init__.py @@ -26,6 +26,7 @@ It provides the choice between different storage backends. """ import const + from _GrampsConfigKeys import * if const.no_gconf: diff --git a/src/ViewManager.py b/src/ViewManager.py index 6b5a10c30..61ffc0538 100644 --- a/src/ViewManager.py +++ b/src/ViewManager.py @@ -185,8 +185,6 @@ class ViewManager: width = Config.get(Config.WIDTH) height = Config.get(Config.HEIGHT) - print width, height, type(width), type(height) - self.window = gtk.Window() self.window.set_icon_from_file(const.icon) self.window.set_default_size(width, height)