gettextvalue in ooldtp is passing one extra argument

Bug #257520 reported by Ara Pulido
2
Affects Status Importance Assigned to Milestone
LDTP
Fix Released
Medium
ldtp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-ldtp

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)

Changed in ldtp:
status: Unknown → New
Changed in ldtp:
status: New → Fix Released
Revision history for this message
Ara Pulido (ara) wrote :

This is now available in Intrepid universe

Changed in ldtp:
status: New → Fix Released
Changed in ldtp:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.