From f5c404c65d81d9a28f171fabe7c5749d6c37f102 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 21 Jan 2013 07:40:42 -0500 Subject: Replace entry.getValue by entry.single_value Part of the work for: https://fedorahosted.org/freeipa/ticket/2660 --- ipaserver/ipaldap.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ipaserver/ipaldap.py') 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 -- cgit