After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581254 - generatekeyevent('<') causes an error
generatekeyevent('<') causes an error
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp
unspecified
Other Linux
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-05-04 04:49 UTC by Julian Andrews
Modified: 2009-05-10 23:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Julian Andrews 2009-05-04 04:49:28 UTC
I'm using the python bindings of ldtp, and ldtp.generatekeyevent('<') generates an error: ldtplib.ldtplibutils.LdtpExecutionError: u'Invalid Key'. This may be intended behavior since there's no obvious way to identify '<', but still raise an error in the case of an incomplete tag, but if so, the documentation should be updated at http://ldtp.freedesktop.org/user-doc/generatekeyevent.html.

ldtp.generatekeyevent('<<>') works (looking through the source code gave me the idea of trying it), but isn't mentioned anywhere in the documentation.  

I looked at the code here: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/device.c, and possibly {"lessthan", 59} (or something similar) could be added to NonPrint_Key_Synth_Vals[] on line 164, though since it's not technically a non printing key, simply documenting the use of "<<>" might be better.

For what it's worth, my own preference would be to rename NonPrint_Key_Synth to something like Escape_Key_Synth and add "lessthan".  I'd submit a patch if I had any idea how to use a cvs system.
Comment 1 Nagappan Alagappan 2009-05-10 23:03:00 UTC
Thanks for the bug report, have fixed the document for now with a note to use < character as you have suggested ('<<>')

Thanks