From a173957865ecbbf85260ecee99a3c86f7b9fde0c Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 25 Jan 2013 08:42:57 -0500 Subject: Remove toTupleList and attrList from LDAPEntry Part of the work for: https://fedorahosted.org/freeipa/ticket/2660 --- ipaserver/ipaldap.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'ipaserver/ipaldap.py') diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py index 78021201..05205808 100644 --- a/ipaserver/ipaldap.py +++ b/ipaserver/ipaldap.py @@ -719,17 +719,6 @@ class LDAPEntry(dict): yield self._dn yield self - def toTupleList(self): - # FIXME: for backwards compatibility only - """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 - single value or a list of values.""" - r = [] - for i in self.data.iteritems(): - n = ipautil.utf8_encode_values(i[1]) - r.append((i[0], n)) - return r - def toDict(self): # FIXME: for backwards compatibility only """Convert the attrs and values to a dict. The dict is keyed on the @@ -741,10 +730,6 @@ class LDAPEntry(dict): result['dn'] = self.dn return result - def attrList(self): - """Return a list of all attributes in the entry""" - return self.data.keys() - def origDataDict(self): """Returns a dict of the original values of the user. -- cgit