From d9d196798945bef7a955acb8b71820800455be17 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Fri, 4 May 2012 10:34:00 -0400 Subject: Redo boolean value encoding. Move the code for encoding boolean values to LDAP boolean syntax from the Parameter class to the Encoder class, where the rest of LDAP encoding takes place. Remove encoding code from the Parameter class altogether, as all LDAP encoding should be done in the Encoder class. --- ipalib/plugins/baseldap.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ipalib/plugins/baseldap.py') diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index e4f8cdc6..85a81723 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -933,12 +933,6 @@ last, after all sets and adds."""), raise errors.ValidationError(name=attr, error=err.error) except errors.ConversionError, err: raise errors.ConversionError(name=attr, error=err.error) - # FIXME: We use `force` when encoding because we know this is - # an attribute, even if it does not have the `attribute` flag - # set. This happens with no_update attributes, which are - # not cloned to Update commands. This cloning is where the flag - # gets set. - value = param.encode(value, force=True) entry_attrs[attr] = value else: # unknown attribute: remove duplicite and invalid values -- cgit