[accerciser/macaroon-pygi] Fixing get_entries_for_keyval calls due to return values



commit 67157449301b3831546585d58776e053827bdfee
Author: Javier HernÃndez <jhernandez emergya es>
Date:   Wed Oct 5 19:11:43 2011 +0200

    Fixing get_entries_for_keyval calls due to return values

 macaroon/macaroon/playback/keypress_actions.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/macaroon/macaroon/playback/keypress_actions.py b/macaroon/macaroon/playback/keypress_actions.py
index a964c9a..86b23d2 100644
--- a/macaroon/macaroon/playback/keypress_actions.py
+++ b/macaroon/macaroon/playback/keypress_actions.py
@@ -270,7 +270,10 @@ class TypeAction(AtomicAction):
     @param keyval: Key code to type.
     @type keyval: intger
     '''
-    key_code, group, level = utils.keymap.get_entries_for_keyval(keyval)[0]
+    success, entries = keymap.get_entries_for_keyval(keyval)
+    entry = [(int(i.keycode), i.group, i.level) for i in entries]
+    key_code, group, level = entry[0]
+    #key_code, group, level = utils.keymap.get_entries_for_keyval(keyval)[0]
     if level == 1:
         pyatspi.Registry.generateKeyboardEvent(50, None, 
                                                pyatspi.KEY_PRESS)



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