MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / __init__

Method __init__

keepercommander/vault.py:187–193  ·  view source on GitHub ↗
(self, custom_field=None)

Source from the content-addressed store, hash-verified

185
186class CustomField(object):
187 def __init__(self, custom_field=None): # type: (Optional[dict]) -> None
188 if custom_field is None:
189 custom_field = {}
190
191 self.name = sanitize_str_field_value(custom_field.get('name')).strip()
192 self.type = sanitize_str_field_value(custom_field.get('type')).strip().lower()
193 self.value = sanitize_str_field_value(custom_field.get('value')).strip()
194
195 @classmethod
196 def new_field(cls, name, value):

Callers

nothing calls this directly

Calls 2

sanitize_str_field_valueFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected