[orca-list] A question for a traceback error message prewenting related



Hy Joanie,

I have got only one question before I begin working my new possible future would like features with master version: If the user-settings.conf file not existing any new added setting in src/orca/settings.py file any place, happening following traceback error message when I try presenting Orca GUI preferences dialog if the new settings I doed a gui widget, for example my contracted braille related bug fix with not committed yet in master version: File "/usr/lib/python2.6/dist-packages/orca/orca.py", line 1622, in showPreferencesGUI
    module.showPreferencesUI()
File "/usr/lib/python2.6/dist-packages/orca/orca_gui_prefs.py", line 5400, in showPreferencesUI
    orca_state.orcaOS.init()
File "/usr/lib/python2.6/dist-packages/orca/orca_gui_prefs.py", line 489, in init
    self._initGUIState()
File "/usr/lib/python2.6/dist-packages/orca/orca_gui_prefs.py", line 1830, in _initGUIState
    prefs["showcursorComputerBraille"])
KeyError: 'showcursorComputerBraille'

So, this traceback error message happening if not existing in user-settings.conf file the showCursorComputerBraille setting.
More details see for example with following bugreport:
https://bugzilla.gnome.org/show_bug.cgi?id=651206

How can possible prewent this type problem general if need doing a new setting and a gui setting possibility for orca GUI preferences dialog?

I would like doing following features next development cicle, but would like resolving this type issue before I attaching final patches:
1. Present position index values with braille display:
https://bugzilla.gnome.org/show_bug.cgi?id=617647
2. Prowide possibility in Orca to present cursor highlighted word with computer braille format or contracted format, if contracted braille feature is enabled:
https://bugzilla.gnome.org/show_bug.cgi?id=651206
3. Present mnemonics informations with braille display, similar with speak objects mnemonics feature:
https://bugzilla.gnome.org/show_bug.cgi?id=651839

Two last linked bugreport already have attached patches, but this patches are compatible with orca-xdesktop branch, so I need verify this patches in Orca master version before attaching final patches. When I ready all tasks, I would like ask more braille display users to test this new possibilities if this features are future acceptable inside with Orca.

Attila



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