MCPcopy Index your code
hub / github.com/apache/caldera / replace_app_props

Method replace_app_props

app/utility/base_object.py:87–94  ·  view source on GitHub ↗
(self, encoded_string)

Source from the content-addressed store, hash-verified

85 self._created = value
86
87 def replace_app_props(self, encoded_string):
88 if encoded_string:
89 decoded_test = self.decode_bytes(encoded_string)
90 for k, v in self.get_config().items():
91 if k.startswith('app.'):
92 var = '#{%s}' % k
93 decoded_test = decoded_test.replace(var, str(v).strip())
94 return self.encode_string(decoded_test)
95
96 @classmethod
97 def load(cls, dict_obj):

Callers 3

test_replace_app_propsFunction · 0.95
commandMethod · 0.80
testMethod · 0.80

Calls 4

decode_bytesMethod · 0.80
replaceMethod · 0.80
encode_stringMethod · 0.80
get_configMethod · 0.45

Tested by 1

test_replace_app_propsFunction · 0.76