From 3274577cd608f947d6b07e6dfcbde393edf5a249 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Fri, 30 Jan 2009 23:46:51 -0700 Subject: Finished small tweaks to get new ipaserver.xmlrpc() mod_python handler working --- ipalib/rpc.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/rpc.py') diff --git a/ipalib/rpc.py b/ipalib/rpc.py index 5a1f9e1e..938c30e6 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. -- cgit