[orca/new-settings] Fix YAML backend.



commit f060c4f2f807015816b9a8147c6f4241efad7f2d
Author: Alejandro Leiva <aleiva emergya es>
Date:   Mon Oct 25 18:53:51 2010 +0200

    Fix YAML backend.

 src/orca/backends/yaml_backend.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index 98ac5b0..87cfe29 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -30,7 +30,7 @@ from yaml import load, dump
 import os
 from xdg.BaseDirectory import xdg_data_home
 
-class Backend():
+class Backend:
 
     def __init__(self):
         self.general = {}
@@ -49,8 +49,12 @@ class Backend():
         dump(prefs, settingsFile)
         settingsFile.close()
 
-    def saveProfileSettings(self, profile='default', general,
+    def saveProfileSettings(self, profile, general,
                                   pronunciations, keybindings):
+
+        if (profile == None):
+            profile = 'default'
+
         profilePrefs = {profile: general,
                         'pronunciations': pronunciations,
                         'keybindings': keybindings}



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