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

Function get_datastore_full_scope

st2common/st2common/util/keyvalue.py:55–62  ·  view source on GitHub ↗
(scope)

Source from the content-addressed store, hash-verified

53
54
55def get_datastore_full_scope(scope):
56 if scope == ALL_SCOPE:
57 return scope
58
59 if DATASTORE_PARENT_SCOPE in scope:
60 return scope
61
62 return "%s%s%s" % (DATASTORE_PARENT_SCOPE, DATASTORE_SCOPE_SEPARATOR, scope)
63
64
65def _derive_scope_and_key(key, user, scope=None):

Callers 5

get_oneMethod · 0.90
get_allMethod · 0.90
putMethod · 0.90
deleteMethod · 0.90
get_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected