summaryrefslogtreecommitdiffstats
path: root/ipaserver/ipaldap.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-21 04:42:16 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:44 +0100
commit66c7fd1323619a99c48eb9babe4cbe7f48dca303 (patch)
treeb8c8a7a711cfd5380a30d16c7a771a9e4599fb9e /ipaserver/ipaldap.py
parentc613caab67337293a410c07713c89345d0124f2c (diff)
downloadfreeipa.git-66c7fd1323619a99c48eb9babe4cbe7f48dca303.tar.gz
freeipa.git-66c7fd1323619a99c48eb9babe4cbe7f48dca303.tar.xz
freeipa.git-66c7fd1323619a99c48eb9babe4cbe7f48dca303.zip
Replace entry.setValue/setValues by item assignment
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/ipaldap.py')
-rw-r--r--ipaserver/ipaldap.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py
index 8a4e7ee9..b496bfbb 100644
--- a/ipaserver/ipaldap.py
+++ b/ipaserver/ipaldap.py
@@ -705,29 +705,6 @@ class LDAPEntry(dict):
return value[0]
return value
- def setValue(self, name, *value):
- # FIXME: for backwards compatibility only
- """
- Set a value on this entry.
-
- The value passed in may be a single value, several values, or a
- single sequence. For example:
-
- * ent.setValue('name', 'value')
- * ent.setValue('name', 'value1', 'value2', ..., 'valueN')
- * ent.setValue('name', ['value1', 'value2', ..., 'valueN'])
- * ent.setValue('name', ('value1', 'value2', ..., 'valueN'))
-
- Since value is a tuple, we may have to extract a list or tuple from
- that tuple as in the last two examples above.
- """
- if isinstance(value[0],list) or isinstance(value[0],tuple):
- self.data[name] = value[0]
- else:
- self.data[name] = value
-
- setValues = setValue
-
def toTupleList(self):
# FIXME: for backwards compatibility only
"""Convert the attrs and values to a list of 2-tuples. The first element