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

Function wrapper

src/web/web_utils.py:25–29  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

23
24def inject_user(func):
25 def wrapper(self, *args, **kwargs):
26 user = get_user(self)
27
28 new_args = chain([user], args)
29 return func(self, *new_args, **kwargs)
30
31 return wrapper
32

Callers

nothing calls this directly

Calls 1

get_userFunction · 0.85

Tested by

no test coverage detected