summaryrefslogtreecommitdiffstats
path: root/ipa-python/entity.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-10-31 17:11:55 -0400
committerRob Crittenden <rcritten@redhat.com>2007-10-31 17:11:55 -0400
commitd9f809746bba7a818e584a5729ecc4b664efb78f (patch)
tree71d6e2fae89f71c0117f2ca0e743f4a8a52f9f5b /ipa-python/entity.py
parent83592ebada13d5ce47ae1144cde4be46adca8ed7 (diff)
downloadfreeipa-d9f809746bba7a818e584a5729ecc4b664efb78f.tar.gz
freeipa-d9f809746bba7a818e584a5729ecc4b664efb78f.tar.xz
freeipa-d9f809746bba7a818e584a5729ecc4b664efb78f.zip
Completely remove an attribute
Diffstat (limited to 'ipa-python/entity.py')
-rw-r--r--ipa-python/entity.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipa-python/entity.py b/ipa-python/entity.py
index 7afc3e63a..ff6478c41 100644
--- a/ipa-python/entity.py
+++ b/ipa-python/entity.py
@@ -105,6 +105,11 @@ class Entity:
setValues = setValue
+ def delValue(self,name):
+ """Remove the attribute named name."""
+ if self.data.get(name,None):
+ del self.data[name]
+
def toTupleList(self):
"""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