Fix #673 do proper test to determine if remote method requires callback

This commit is contained in:
Andrew Resch 2008-12-28 04:39:08 +00:00
parent d00366204e
commit 2fb3f4b534
1 changed files with 5 additions and 2 deletions

View File

@ -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"""