[orca/new-settings] Minor fixes.



commit c30d571123947a6c81859de01db306c9c139f485
Author: Alejandro Leiva <aleiva emergya es>
Date:   Tue Oct 26 13:08:20 2010 +0200

    Minor fixes.

 src/orca/backends/gconf_backend.py |   13 ++-----------
 src/orca/backends/yaml_backend.py  |    1 -
 src/orca/settings_manager.py       |    2 +-
 3 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/src/orca/backends/gconf_backend.py b/src/orca/backends/gconf_backend.py
index 5cedbc8..23a89ac 100644
--- a/src/orca/backends/gconf_backend.py
+++ b/src/orca/backends/gconf_backend.py
@@ -39,23 +39,14 @@ import types
 
 (ACTUAL, REPLACEMENT) = range(2)
 
-class Backend():
+class Backend:
     # set gconf configuration properties
     GCONF_BASE_DIR = '/apps/gnome-orca'
     VALID_KEY_TYPES = (bool, str, int, list, tuple)
 
     def __init__(self):
-        """Creates a new OrcaPrefs instance that will be used to load/store
+        """Creates a new Backend instance that will be used to load/store
         application specific preferences.
-
-        Arguments:
-        - prefsDict: a dictionary where the keys are orca preferences
-          names and the values are the values for the preferences, or none if
-          we are loading user settings.
-        - keyBindingsTreeModel - key bindings tree model, or None if we are
-          writing out console preferences.
-        - pronunciationTreeModel - pronunciation dictionary tree model, or
-          None if we are writing out console preferences.
         """
 
         # init gconf
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index d124740..2cb5447 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -42,7 +42,6 @@ class Backend:
         self.profiles = {}
         self.settingsFile = os.path.join(xdg_data_home,
                                          "orca/user-settings.conf")
-        self._getSettings()
 
     def saveDefaultSettings(self, general, pronunciations, keybindings):
         """ Save default settings for all the properties from
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index d6a7011..3643efa 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -185,7 +185,7 @@ class SettingsManager():
                     if key == 'magZoomerLeft':
                         value = eval('settings.%s' % prefsDict[key])
                     elif key in need2repr:
-                        value = "%s" % prefsDict[key]
+                        value = "\'%s\'" % prefsDict[key]
                     else:
                         try:
                             value = getattr(settings, prefsDict[key])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]