GNOME Bugzilla – Bug 616848
Application and toolkit scripts should not call methods in braille.py
Last modified: 2013-01-02 15:51:36 UTC
One of the side effects of application and toolkit scripts calling methods in braille.py is that there are approximately a bazillion places in which things can blow up if we only perform braille functions when braille support is enabled (i.e. fixing bug 616847). We could either add in a bazillion sanity checks, and hope that future callers do the same, or we can centralize calls to methods in braille.py and do a handful of sanity checks.
Created attachment 159660 [details] [review] part 1 of the fix This creates the bulk of the necessary static methods in default.py and causes many scripts to begin using them. More conversion is still necessary, and I've not yet started on the Gecko script conversion. That work will follow in a few days. This patch is fully regression tested and pylints to a 10.0.
Created attachment 160121 [details] [review] rest of the fix This causes the Gecko script to use the new braille methods in default.py. It also corrects a silly mistake in one of the new methods introduced by patch 1. Fully regression tested and pylinted.