[orca/orca-gnome3: 78/87] Voice settings need to be ACSSs; not dicts.



commit ff06a3c3ed31ef503a3c8a0d6412b1341b2c02fe
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Mar 25 06:51:30 2011 -0400

    Voice settings need to be ACSSs; not dicts.
    
    This solves the 'bad content sent to speech.speak' issue.
    (No bug filed because bugzilla is down and it's code freeze day.)

 src/orca/backends/json_backend.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/backends/json_backend.py b/src/orca/backends/json_backend.py
index 3f509af..6a56812 100644
--- a/src/orca/backends/json_backend.py
+++ b/src/orca/backends/json_backend.py
@@ -29,7 +29,7 @@ __license__   = "LGPL"
 
 from json import load, dump
 import os
-from orca import settings
+from orca import settings, acss
 
 class Backend:
 
@@ -112,6 +112,9 @@ class Backend:
         generalSettings = self.general.copy()
         profileSettings = self.profiles[profile].copy()
         for key, value in profileSettings.items():
+            if key == 'voices':
+                for voiceType, voiceDef in value.items():
+                    value[voiceType] = acss.ACSS(voiceDef)
             if key not in settings.excludeKeys:
                 generalSettings[key] = value
         generalSettings['activeProfile'] = profileSettings['profile']



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