diff options
author | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-08-28 09:58:10 -0400 |
---|---|---|
committer | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-08-28 09:58:10 -0400 |
commit | 6eea6664e079d187c3b0420b4283af35205d3b03 (patch) | |
tree | c579e484bd63dfc8d9d5db1369b36554ddb06531 /ipa-server/xmlrpc-server/ipaxmlrpc.py | |
parent | e31b526c8174e7c55f69b1fdf31a6ee78197e8bc (diff) | |
download | freeipa-6eea6664e079d187c3b0420b4283af35205d3b03.tar.gz freeipa-6eea6664e079d187c3b0420b4283af35205d3b03.tar.xz freeipa-6eea6664e079d187c3b0420b4283af35205d3b03.zip |
This patch wraps binary data in an xmlrpclib Binary object. This
removes the need for LDIF conversion. It will make TurboGears direct
code faster, but should keep xmlrpc about the same speed.
The patch also swaps out ldap.cidict for the IPA CIDict class. IPA code
should only use the CIDict class now.
Diffstat (limited to 'ipa-server/xmlrpc-server/ipaxmlrpc.py')
-rw-r--r-- | ipa-server/xmlrpc-server/ipaxmlrpc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipa-server/xmlrpc-server/ipaxmlrpc.py b/ipa-server/xmlrpc-server/ipaxmlrpc.py index 9ef1e1b0e..16ced2cda 100644 --- a/ipa-server/xmlrpc-server/ipaxmlrpc.py +++ b/ipa-server/xmlrpc-server/ipaxmlrpc.py @@ -35,7 +35,7 @@ from mod_python import apache import ipaserver import funcs -from ipa import ipaerror +from ipa import ipaerror, ipautil import ldap import string @@ -173,14 +173,14 @@ class ModXMLRPCRequestHandler(object): if func is None: raise Fault(1, "Invalid method: %s" % method) - args = list(params) + args = list(ipautil.unwrap_binary_data(params)) for i in range(len(args)): if args[i] == '__NONE__': args[i] = None ret = func(*args) - return ret + return ipautil.wrap_binary_data(ret) def multiCall(self, calls): """Execute a multicall. Execute each method call in the calls list, collecting |