Hi,

Calling a particular method using dcopext yields a different result from
calling it using the dcop commandline client. Here's a test script that calls
the method (requires ktorrent)

from kdecore import KApplication
import dcopext, sys, subprocess

app = KApplication(sys.argv, 'test')
dcop = app.dcopClient()
kt = dcopext.DCOPApp('ktorrent', dcop).KTorrent
print kt.maxUploadRate()
print kt.getTorrentNumbers(3)
subprocess.call('dcop ktorrent KTorrent getTorrentNumbers 3', shell=True)

The call to getTorrentNumbers produces a (True, None) when called via dcopext
and a list of the torrent numbers when called via the command line client.

Using kde 3.5.6. Other method calls on ktorrent work as shown by the call to
maxUploadRate.

Thanks,

Kovid.

_____________________________________

Kovid Goyal  MC 452-48
California Institute of Technology
1200 E California Blvd
Pasadena, CA 91125

home  : +01 626 390 8699
office: +01 626 395 6595 (449 Lauritsen)
email : [EMAIL PROTECTED]
web   : http://www.kovidgoyal.net
_____________________________________

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to