MCPcopy Create free account
hub / github.com/bugy/script-server / __init__

Method __init__

src/web/script_config_socket.py:36–49  ·  view source on GitHub ↗
(self, application, request, **kwargs)

Source from the content-addressed store, hash-verified

34
35 # noinspection PyTypeChecker
36 def __init__(self, application, request, **kwargs):
37 super().__init__(application, request, **kwargs)
38
39 self.config_model = None
40 self.config_name = None
41 self.user = None
42 self.config_id = str(uuid.uuid4())
43
44 self.init_with_values = read_bool(self.get_query_argument('initWithValues', default='false'))
45
46 self.parameters_listener = self._create_parameters_listener()
47 self._executor = ThreadPoolExecutor(max_workers=1, thread_name_prefix='-model-' + self.config_id)
48 self._parameter_events_queue = []
49 self._latest_client_state_version = None
50
51 @check_authorization
52 @inject_user

Callers

nothing calls this directly

Calls 2

read_boolFunction · 0.90

Tested by

no test coverage detected