Fix #673 do proper test to determine if remote method requires callback
This commit is contained in:
parent
d00366204e
commit
2fb3f4b534
|
@ -302,8 +302,11 @@ class BaseClient(object):
|
||||||
|
|
||||||
#utility:
|
#utility:
|
||||||
def has_callback(self, method_name):
|
def has_callback(self, method_name):
|
||||||
method_name = method_name.split(".")[-1]
|
msplit = method_name.split(".")
|
||||||
return not (method_name in self.no_callback_list)
|
if msplit[0] == "core":
|
||||||
|
return not (msplit[1] in self.no_callback_list)
|
||||||
|
else:
|
||||||
|
return True
|
||||||
|
|
||||||
def is_localhost(self):
|
def is_localhost(self):
|
||||||
"""Returns True if core is a localhost"""
|
"""Returns True if core is a localhost"""
|
||||||
|
|
Loading…
Reference in New Issue