dogtail-devel [Bug 428617] New: AttributeError: Root::applications - missing findAllChildrenSatisfying
- From: "dogtail (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
- To: dogtail-devel-list gnome org
- Subject: dogtail-devel [Bug 428617] New: AttributeError: Root::applications - missing findAllChildrenSatisfying
- Date: Wed, 11 Apr 2007 13:31:13 +0000 (UTC)
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=428617
dogtail | Framework | Ver: 0.6.1
Summary: AttributeError: Root::applications - missing
findAllChildrenSatisfying
Product: dogtail
Version: 0.6.1
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: Framework
AssignedTo: dogtail-maint gnome bugs
ReportedBy: atodorov redhat com
QAContact: dogtail-maint gnome bugs
GNOME version: Unspecified
GNOME milestone: Unspecified
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):
File "./test.py", line 18, in ?
for node in focus.desktop.applications():
File "/usr/lib/python2.4/site-packages/dogtail/tree.py", line 1090, in
applications
return
root.findAllChildrenSatisfying(predicate.GenericPredicate(roleName="application"),
recursive=False)
File "/usr/lib/python2.4/site-packages/dogtail/tree.py", line 567, in
__getattr__
else: raise AttributeError, attr
AttributeError: findAllChildrenSatisfying
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
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=428617.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]