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

Method get

src/web/server.py:468–481  ·  view source on GitHub ↗
(self, user, execution_id)

Source from the content-addressed store, hash-verified

466 @check_authorization
467 @inject_user
468 def get(self, user, execution_id):
469 config = self.application.execution_service.get_config(execution_id, user)
470
471 values = dict(self.application.execution_service.get_user_parameter_values(execution_id))
472
473 for parameter in config.parameters:
474 parameter_name = parameter.name
475 if (parameter_name in values) and (parameter.type == 'file_upload'):
476 del values[parameter_name]
477
478 self.write({
479 'scriptName': config.name,
480 'parameterValues': values
481 })
482
483
484class CleanupExecutingScript(BaseRequestHandler):

Callers

nothing calls this directly

Calls 3

get_configMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected