diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-01-21 04:42:16 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:44 +0100 |
commit | 66c7fd1323619a99c48eb9babe4cbe7f48dca303 (patch) | |
tree | b8c8a7a711cfd5380a30d16c7a771a9e4599fb9e /ipaserver/ipaldap.py | |
parent | c613caab67337293a410c07713c89345d0124f2c (diff) | |
download | freeipa.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.py | 23 |
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 |