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

Method remove_field

keepercommander/record.py:204–208  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

202 self.custom_fields.append({'type': 'text', 'name': name, 'value': value})
203
204 def remove_field(self, name):
205 if self.custom_fields:
206 idxs = [i for i, x in enumerate(self.custom_fields) if x['name'] == name]
207 if len(idxs) == 1:
208 return self.custom_fields.pop(idxs[0])
209
210 def get_unmasked_field_params(self):
211 """Return unmasked field parameters (login, url, etc.)"""

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected