MCPcopy Create free account
hub / github.com/StackStorm/st2 / _get_by_object

Method _get_by_object

st2common/st2common/persistence/auth.py:56–59  ·  view source on GitHub ↗
(cls, object)

Source from the content-addressed store, hash-verified

54
55 @classmethod
56 def _get_by_object(cls, object):
57 # For User name is unique.
58 name = getattr(object, "name", "")
59 return cls.get_by_name(name)
60
61
62class Token(Access):

Callers

nothing calls this directly

Calls 1

get_by_nameMethod · 0.45

Tested by

no test coverage detected