[orca/new-settings] Fix the SettingsManager class to be singleton



commit 6ed039d820df3157ba2b41429b10c0b65a189e13
Author: Juanje Ojeda <jojeda emergya es>
Date:   Tue Nov 2 05:00:33 2010 +0100

    Fix the SettingsManager class to be singleton

 src/orca/settings_manager.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index ff1459e..685e095 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -40,9 +40,10 @@ try:
 except:
     gconfClient = None
 
-class SettingsManager():
+class SettingsManager(object):
     """Settings backend manager. This class manages orca user's settings
     using different backends"""
+    _instance = None
 
     def __new__(cls, *args, **kwargs):
         if '__instance' not in vars(cls):



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