[accerciser] macaroon: When recording, put right ATSPI roles in the output sequence



commit f927564e08680272f58338a4aa601e69259fd477
Author: Javier Hernández <jhernandez emergya com>
Date:   Thu Mar 6 16:00:44 2014 +0100

    macaroon: When recording, put right ATSPI roles in the output sequence

 macaroon/macaroon/record/script_factory.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/macaroon/macaroon/record/script_factory.py b/macaroon/macaroon/record/script_factory.py
index ef5ed3f..0db7a48 100644
--- a/macaroon/macaroon/record/script_factory.py
+++ b/macaroon/macaroon/record/script_factory.py
@@ -240,7 +240,7 @@ class Level1SequenceFactory(SequenceFactory):
     self.commands_queue.put_nowait(
       '%ssequence.append(WaitForFocus("%s", acc_role=pyatspi.%s))\n' % \
         (self._focus_comment, event.source.name,
-         repr(event.source.getRole())))
+         event.source.getRole().value_name.replace("ATSPI_", "")))
 
 class DogtailFactory(ScriptFactory):
   '''


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