From 2fb3f4b5345f1f481e90f002e23a104c334925c7 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 28 Dec 2008 04:39:08 +0000 Subject: [PATCH] Fix #673 do proper test to determine if remote method requires callback --- deluge/ui/client.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deluge/ui/client.py b/deluge/ui/client.py index e7b296a1b..1887e9924 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -302,8 +302,11 @@ class BaseClient(object): #utility: def has_callback(self, method_name): - method_name = method_name.split(".")[-1] - return not (method_name in self.no_callback_list) + msplit = method_name.split(".") + if msplit[0] == "core": + return not (msplit[1] in self.no_callback_list) + else: + return True def is_localhost(self): """Returns True if core is a localhost"""