summaryrefslogtreecommitdiffstats
path: root/ipaserver/ipaldap.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-21 07:40:42 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:45 +0100
commitf5c404c65d81d9a28f171fabe7c5749d6c37f102 (patch)
tree2144594e18108034898baf93780e37eb8bbe6027 /ipaserver/ipaldap.py
parent66eaf1220da3e3fccd54b8f6a54f7d116818b024 (diff)
downloadfreeipa.git-f5c404c65d81d9a28f171fabe7c5749d6c37f102.tar.gz
freeipa.git-f5c404c65d81d9a28f171fabe7c5749d6c37f102.tar.xz
freeipa.git-f5c404c65d81d9a28f171fabe7c5749d6c37f102.zip
Replace entry.getValue by entry.single_value
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/ipaldap.py')
-rw-r--r--ipaserver/ipaldap.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py
index 399b8cf0..7fceb889 100644
--- a/ipaserver/ipaldap.py
+++ b/ipaserver/ipaldap.py
@@ -719,14 +719,6 @@ class LDAPEntry(dict):
yield self._dn
yield self
- def getValue(self, name, default=None):
- # FIXME: for backwards compatibility only
- """Get the first value for the attribute named name"""
- value = self.data.get(name, default)
- if isinstance(value, (list, tuple)):
- return value[0]
- return value
-
def toTupleList(self):
# FIXME: for backwards compatibility only
"""Convert the attrs and values to a list of 2-tuples. The first element