GNOME Bugzilla – Bug 321625
Better debug names for search results in procedural.py
Last modified: 2011-02-07 06:01:29 UTC
Nodes have a debugName attribute which is set up by a search, by calling a method on the Predicate class. This gives nice readable debug names for the nodes e.g. "File" menu "Cancel" button etc All of the searches in procedural.py seem to be ultimately doing a search using a GenericPredicate. This gives you a very generic debug name for the result node e.g. name="File" roleName="menu" name="Cancel" roleName="button" I think the former style of debug names are much better, and it would be good to get this supported throughout the procedural.py API. This could be done by either using more specific Predicate subclasses, or by simply overwriting the Node.debugName variable (I'd greatly prefer the former approach since it leverages lots of existing code e.g. handling i18n)
I'd much rather do this with actual Predicate subclasses, and I think it'll be possible.
dogtail development has been stalled and it has been unmaintained for a few years now. Maintainers don't have future development plan so i am closing bugs as WONTFIX. Please feel free to reopen the bugs in future if anyone takes the responsibility for active development.