[orca/new-settings] Added missing method for gettings the default general settings. More similar methods are coming (pro



commit f9d440b37929f698f0964d0039bc24929031016e
Author: Juanje Ojeda <jojeda emergya es>
Date:   Sun Oct 24 23:38:52 2010 +0200

    Added missing method for gettings the default general settings. More similar methods are coming (pronunciations and keybindings

 src/orca/settings_manager.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index b5b9ea6..8dc0064 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -27,6 +27,7 @@ __date__      = "$Date$"
 __copyright__ = "Copyright (c) 2010 Consorcio Fernando de los Rios."
 __license__   = "LGPL"
 
+from orca import settings
 
 class SettingsManager():
     """Settings backend manager. This class manages orca user's settings
@@ -98,6 +99,15 @@ class SettingsManager():
                                     self.pronunciations,
                                     self.keybindings)
 
+    def _getDefaultGeneral(self):
+        """Get the general settings by default from orca.settings"""
+        self.defaultGeneral = {}
+        for key in settings.userCustomizableSettings:
+            try:
+                self.defaultGeneral[key] = getattr(settings, key)
+            except:
+                pass
+
     def _getGeneral(self):
         """Get from the active backend the general settings for
         the current profile"""



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