summaryrefslogtreecommitdiffstats
path: root/ipalib/rpc.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-30 23:46:51 -0700
committerRob Crittenden <rcritten@redhat.com>2009-02-03 15:29:05 -0500
commit3274577cd608f947d6b07e6dfcbde393edf5a249 (patch)
tree0e7ab0c0a89849a31539121b1a07e28084ad2eeb /ipalib/rpc.py
parentc2b0c801400fcb59be8687f9faf061aa85bcffd2 (diff)
downloadfreeipa-3274577cd608f947d6b07e6dfcbde393edf5a249.tar.gz
freeipa-3274577cd608f947d6b07e6dfcbde393edf5a249.tar.xz
freeipa-3274577cd608f947d6b07e6dfcbde393edf5a249.zip
Finished small tweaks to get new ipaserver.xmlrpc() mod_python handler working
Diffstat (limited to 'ipalib/rpc.py')
-rw-r--r--ipalib/rpc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py
index 5a1f9e1ed..938c30e64 100644
--- a/ipalib/rpc.py
+++ b/ipalib/rpc.py
@@ -137,12 +137,14 @@ def xml_dumps(params, methodname=None, methodresponse=False, encoding='UTF-8'):
allow_none=True,
)
+
def decode_fault(e, encoding='UTF-8'):
assert isinstance(e, Fault)
if type(e.faultString) is str:
return Fault(e.faultCode, e.faultString.decode(encoding))
return e
+
def xml_loads(data, encoding='UTF-8'):
"""
Decode the XML-RPC packet in ``data``, transparently unwrapping its params.