This commit is contained in:
Martijn Voncken 2008-06-26 21:12:17 +00:00
parent 2641868cff
commit 22d75a7f43
2 changed files with 1 additions and 5 deletions

View File

@ -77,8 +77,6 @@ class json_rpc:
method = json_data["method"]
params = json_data["params"]
log.debug("PP==%s" % json_data["params"])
if method.startswith('_'):
raise Exception('_ methods are illegal.')
@ -113,7 +111,6 @@ class json_rpc:
#Call:
func = getattr(sclient, method)
log.debug("PARAMS=%s" % params)
result = func(*params)
return {

View File

@ -45,8 +45,7 @@ function get_torrents_status(torrent_ids) {
};
function list_torrents(torrent_ids) {
//This code will send a data object via a GET request and alert the retrieved data.
function list_torrents() {
service.get_session_state({params:[],
onSuccess:function(torrent_ids){
get_torrents_status(torrent_ids)