mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Completely remove an attribute
This commit is contained in:
parent
83592ebada
commit
d9f809746b
@ -105,6 +105,11 @@ class Entity:
|
|||||||
|
|
||||||
setValues = setValue
|
setValues = setValue
|
||||||
|
|
||||||
|
def delValue(self,name):
|
||||||
|
"""Remove the attribute named name."""
|
||||||
|
if self.data.get(name,None):
|
||||||
|
del self.data[name]
|
||||||
|
|
||||||
def toTupleList(self):
|
def toTupleList(self):
|
||||||
"""Convert the attrs and values to a list of 2-tuples. The first element
|
"""Convert the attrs and values to a list of 2-tuples. The first element
|
||||||
of the tuple is the attribute name. The second element is either a
|
of the tuple is the attribute name. The second element is either a
|
||||||
|
Loading…
Reference in New Issue
Block a user