[orca] Fix for bug #645364 - Need to check for "mapped" scripts before object toolkit scripts when creating



commit bb8a4b5cc25e3def4f6fa54b6a15367cee118ebe
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Mon Mar 21 02:10:51 2011 -0400

    Fix for bug #645364 - Need to check for "mapped" scripts before object toolkit scripts when creating a new script

 src/orca/script_manager.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/script_manager.py b/src/orca/script_manager.py
index 7dc46fd..2c2ad00 100644
--- a/src/orca/script_manager.py
+++ b/src/orca/script_manager.py
@@ -156,13 +156,13 @@ class ScriptManager:
     def _createScript(self, app, obj=None):
         """For the given application, create a new script instance."""
 
-        objToolkit = self._toolkitForObject(obj)
-        script = self._newNamedScript(app, objToolkit)
+        moduleName = self.getModuleName(app)
+        script = self._newNamedScript(app, moduleName)
         if script:
             return script
 
-        moduleName = self.getModuleName(app)
-        script = self._newNamedScript(app, moduleName)
+        objToolkit = self._toolkitForObject(obj)
+        script = self._newNamedScript(app, objToolkit)
         if script:
             return script
 



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