diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-30 23:46:51 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-03 15:29:05 -0500 |
commit | 3274577cd608f947d6b07e6dfcbde393edf5a249 (patch) | |
tree | 0e7ab0c0a89849a31539121b1a07e28084ad2eeb /ipalib | |
parent | c2b0c801400fcb59be8687f9faf061aa85bcffd2 (diff) | |
download | freeipa-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')
-rw-r--r-- | ipalib/config.py | 1 | ||||
-rw-r--r-- | ipalib/rpc.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/config.py b/ipalib/config.py index 42d7ab578..39c4238cf 100644 --- a/ipalib/config.py +++ b/ipalib/config.py @@ -433,7 +433,6 @@ class Env(object): self.script = path.abspath(sys.argv[0]) self.bin = path.dirname(self.script) self.home = os.environ.get('HOME', None) - self.etc = path.join('/', 'etc', 'ipa') self.dot_ipa = self._join('home', '.ipa') self._merge(**overrides) if 'in_tree' not in self: 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. |