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 547541 - gettextvalue in ooldtp is passing one extra argument
gettextvalue in ooldtp is passing one extra argument
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: pyldtp
1.2.0
Other All
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2008-08-13 07:16 UTC by Ara Pulido
Modified: 2008-08-13 13:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ara Pulido 2008-08-13 07:16:21 UTC
Please describe the problem:
In ooldtp.py gettextvalue is passing one more argument to ldtp.gettextvalue.

If you have a text component and want to get the text value, you would do:

textcomponent = mywindow.getchild('txt0')
mytext = textcomponent.gettextvalue()

That would raise an exception: Min 1 argument required

That is not true, as the minimum arguments for ldtp.gettextvalue are only the context and the component name, which we already have.

Moreover, if you try to pass a fake argument to it, it raise another exception:

  • File "/var/lib/python-support/python2.5/ooldtp.py", line 342 in gettextvalue
    return ldtp.gettextvalue (self.__window, name, textProperty, startPosition, endPosition)
TypeError: gettextvalue() takes at most 4 arguments (5 given)





Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
Comment 1 Nagappan Alagappan 2008-08-13 13:07:42 UTC
Thanks for the bug report. Fix is in GIT.