[orca] Voice settings need to be ACSSs; not dicts.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Voice settings need to be ACSSs; not dicts.
- Date: Fri, 25 Mar 2011 11:02:02 +0000 (UTC)
commit 394effe178af0a2ccede939ae3b9b6868c379183
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 f5b6477..612c391 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:
@@ -101,6 +101,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]