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 469083 - [pending] Refactor Gecko.py's getContainingRole() to take a list
[pending] Refactor Gecko.py's getContainingRole() to take a list
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.19.x
Other All
: Normal normal
: 2.22.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 404403
 
 
Reported: 2007-08-22 02:04 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2008-07-22 19:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
take 1 (19.25 KB, patch)
2007-11-12 16:02 UTC, Joanmarie Diggs (IRC: joanie)
accepted-commit_now Details | Review
take 2: no default value for stopRoles (19.25 KB, patch)
2007-11-12 17:39 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2007-08-22 02:04:58 UTC
As indicated here http://bugzilla.gnome.org/show_bug.cgi?id=466764#c6 and in subsequent comments, it would be handy if the second parameter of getContainingRole() was a list of roles rather than a single role.
Comment 1 Willie Walker 2007-08-22 13:14:43 UTC
This work probably should be done in conjunction with the work on bug 460735, since both are seeing a need to get an ancestor/container with a specific role.  See also http://bugzilla.gnome.org/show_bug.cgi?id=460735#c10.
Comment 2 Joanmarie Diggs (IRC: joanie) 2007-11-12 16:02:35 UTC
Created attachment 98974 [details] [review]
take 1

Now that bugzilla's once again back up....

This seems to get the job done and passes the regression-test, pychecker, and pyflakes tests.  However pylint complained that having an empty list as a default argument (which is what I used for the stopRoles) was "dangerous."  Is that a valid complaint?
Comment 3 Willie Walker 2007-11-12 17:28:25 UTC
Looks great.  Please commit!  Thanks!
Comment 4 Willie Walker 2007-11-12 17:33:20 UTC
> This seems to get the job done and passes the regression-test, pychecker, and
> pyflakes tests.  However pylint complained that having an empty list as a
> default argument (which is what I used for the stopRoles) was "dangerous."  Is
> that a valid complaint?

Sorry - missed this part.  I say take the default value out for now.  Thanks!

Comment 5 Joanmarie Diggs (IRC: joanie) 2007-11-12 17:39:04 UTC
Created attachment 98978 [details] [review]
take 2: no default value for stopRoles

Sounds good.  Patch committed.
Comment 6 Willie Walker 2007-11-15 01:46:57 UTC
Feel free to close.  Thanks!
Comment 7 Joanmarie Diggs (IRC: joanie) 2007-11-15 01:52:55 UTC
Done.  Thanks!