[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] (no subject)
From:       "Kovid Goyal" <kovid () theory ! caltech ! edu>
Date:       2007-01-31 7:13:07
Message-ID: 43827.131.215.7.81.1170227587.squirrel () theory ! caltech ! edu
[Download RAW message or body]


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 : kovid@theory.caltech.edu
web   : http://www.kovidgoyal.net
_____________________________________

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic