def list(self, raw=False, **kwargs):
log.msg("LIST called")
yield self.connect(self._router_url)
try:
output = yield self._wamp.call(u"io.timbr.kernel.list")
try:
output.remove(self._kernel_key)
except ValueError:
# kernel key doesn't exist in the list
pass
except ApplicationError:
output = []
if raw is not True:
prefix_map = yield threads.deferToThread(self._get_kernel_names, output, details=kwargs.get('details'))
if prefix_map is not None:
returnValue(prefix_map)
else:
print("Unable to access JUNO_KERNEL_URI, displaying kernel prefixes instead of kernel names")
returnValue(output)
else:
returnValue(output)
returnValue(output)
评论列表
文章目录