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/frontend.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'ipalib/frontend.py') 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: -- cgit