Add a test script for testing the signalreceiver

This commit is contained in:
Andrew Resch 2008-08-15 18:36:04 +00:00
parent 00ed73f453
commit 4ab3577172
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
from deluge.configmanager import ConfigManager
import deluge.xmlrpclib as xmlrpclib
config = ConfigManager("gtkui.conf")
client = xmlrpclib.ServerProxy("http://localhost:" + str(config["signal_port"]))
client.emit_signal("torrent_finished", "abc123")