diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-05-04 10:34:00 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-05-09 09:43:35 +0200 |
commit | d9d196798945bef7a955acb8b71820800455be17 (patch) | |
tree | fcdbbb63b26640f9255a264b62d53248e8e11ba1 /ipalib/frontend.py | |
parent | abef5e8c027bf37d9522f4d30e8e43c408251893 (diff) | |
download | freeipa-d9d196798945bef7a955acb8b71820800455be17.tar.gz freeipa-d9d196798945bef7a955acb8b71820800455be17.tar.xz freeipa-d9d196798945bef7a955acb8b71820800455be17.zip |
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.
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index f66596343..b31d6d4b8 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -429,8 +429,6 @@ class Command(HasParam): if not self.api.env.in_server and 'version' not in params: params['version'] = API_VERSION self.validate(**params) - if self.api.env.in_server: - params = self.encode(**params) (args, options) = self.params_2_args_options(**params) ret = self.run(*args, **options) if ( @@ -615,14 +613,6 @@ class Command(HasParam): (k, self.params[k].convert(v)) for (k, v) in kw.iteritems() ) - def encode(self, **kw): - """ - Return a dictionary of encoded values. - """ - return dict( - (k, self.params[k].encode(v)) for (k, v) in kw.iteritems() - ) - def __convert_iter(self, kw): for param in self.params(): if kw.get(param.name, None) is None: |