GNOME Bugzilla – Bug 428617
AttributeError: Root::applications - missing findAllChildrenSatisfying
Last modified: 2008-06-13 14:33:57 UTC
Steps to reproduce: 1. Createa test script containing the following: from dogtail.procedural import * for node in focus.desktop.applications(): print node.name 2. Run the script 3. Your script will crash Stack trace: Traceback (most recent call last):
+ Trace 126868
for node in focus.desktop.applications():
return root.findAllChildrenSatisfying(predicate.GenericPredicate(roleName="application"), recursive=False)
else: raise AttributeError, attr
Other information: Workaround: from dogtail.procedural import * from dogtail import predicate for node in focus.desktop.findChildren(predicate.GenericPredicate(roleName="application"), False): print node.name The method Node::findAllChildrenSatisfying is not existent. There is a method Node::findChildren which seems to do the same job. There is a FIXME comment just above Root::applications
This looks like the single place where findAllChildrenSatisfying appears in the code. It seems obvious it should be findChildren instead. Is there any reason why this but is still UNCONFIRMED ?
Only because I forgot to mark it as fixed in SVN :)