Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ to_model
Method
to_model
st2common/st2common/models/api/auth.py:44–47 ·
view source on GitHub ↗
(cls, user)
Source
from the content-addressed store, hash-verified
42
43
@classmethod
44
def
to_model(cls, user):
45
name = user.name
46
model = cls.model(name=name)
47
return
model
48
49
50
class
TokenAPI(BaseAPI):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected