Re: [PyKDE] mysterious dcopext bug

2007-02-03 Thread Kovid Goyal
I figured out that this happens because the method getTorrentNumbers returns a QValueList. Does anyone know how I can unmarshall that? dcop_next doesn't seem to work. b = QByteArray() s = QDataStream (b, IO_WriteOnly) dcop_add(s, 1, 'int') ok, rtype, arr = dcop.call('ktorrent', 'KTorrent', 'get

[PyKDE] mysterious dcopext bug

2007-02-02 Thread Kovid Goyal
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 = a