Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, name, config, manager):
KerviPlugin.__init__(self, name, config, manager)
self._router_name = ""
self._spine = spine.Spine()
self._spine.register_event_handler("appReady", self._app_ready)
self._spine.register_event_handler("moduleReady", self._module_ready)
self._spine.register_event_handler("appReady", self._app_ready)
self._routes_in = []
self._routes_out = []
self._ids = []
self._prepare_thread = None
self._route_table_ready = False
self._router_id = uuid.uuid4().hex
self._connected = False
self._connection_id = None
self._connection_type = None
self._connections = {}
def __init__(self, config, manager):
KerviPlugin.__init__(self, "WSIPC", config, manager)
from kervi.plugin.ipc.websocket.socket_spine import SocketSpine
self._socket_spine = SocketSpine(self.global_config)
self.spine.register_command_handler("startWebSocket", self._start_socket)
self.spine.trigger_event(
"websocketReady",
None,
{
def __init__(self, name, configuration, manager):
KerviPlugin.__init__(self, name, configuration, manager)
def __init__(self, name, config, manager):
KerviPlugin.__init__(self, name, config, manager)
def __init__(self, name, config, manager):
KerviPlugin.__init__(self, name, config, manager)
def __init__(self, name, configuration, manager):
KerviPlugin.__init__(self, name, configuration, manager)
self._root = self.plugin_config.root
self.spine.register_query_handler("files_get_dir", self.get_dir)
self.spine.register_query_handler("files_get_file", self.get_file)
self.spine.register_command_handler("files_save_file", self.save_file)
self.spine.register_query_handler("files_get_thumbnail", self.get_thumbnail)
self.spine.register_command_handler("files_open_file", self.open_file)
#self.spine.register_command_handler("files_write_file", self.write_file)
#self.spine.register_command_handler("files_close_file", self.close_file)
self._open_files = {}