diff options
author | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-07-31 15:52:02 -0400 |
---|---|---|
committer | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-07-31 15:52:02 -0400 |
commit | 8cf45633fe3e2f114c418304bb949eefabc97485 (patch) | |
tree | a747d278aea904723d59722fb40cb85544d91965 /ipa-server/xmlrpc-server/ipaxmlrpc.py | |
parent | 7d95cd612c1b340add692038c835e7cd8d8ad18b (diff) | |
download | freeipa-8cf45633fe3e2f114c418304bb949eefabc97485.tar.gz freeipa-8cf45633fe3e2f114c418304bb949eefabc97485.tar.xz freeipa-8cf45633fe3e2f114c418304bb949eefabc97485.zip |
Fixed broken patches and server spec.
Diffstat (limited to 'ipa-server/xmlrpc-server/ipaxmlrpc.py')
-rw-r--r-- | ipa-server/xmlrpc-server/ipaxmlrpc.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ipa-server/xmlrpc-server/ipaxmlrpc.py b/ipa-server/xmlrpc-server/ipaxmlrpc.py index 1dc15956..ad5e3068 100644 --- a/ipa-server/xmlrpc-server/ipaxmlrpc.py +++ b/ipa-server/xmlrpc-server/ipaxmlrpc.py @@ -24,6 +24,9 @@ # Rob Crittenden <rcritten@redhat.com> import sys +sys.path.append("/usr/share/ipa") + + import time import traceback import pprint @@ -201,7 +204,7 @@ class ModXMLRPCRequestHandler(object): if x == 0 and func.func_code.co_varnames[x] == "self": continue if func.func_defaults and func.func_code.co_argcount - x <= len(func.func_defaults): - args.append((func.func_code.co_varnames[x], func.func_defaults[x - func.func_code.co_argcount len(func.func_defaults)])) + args.append((func.func_code.co_varnames[x], func.func_defaults[x - func.func_code.co_argcount + len(func.func_defaults)])) else: args.append(func.func_code.co_varnames[x]) return args @@ -225,7 +228,7 @@ class ModXMLRPCRequestHandler(object): arglist.append('%s=%s' % (arg[0], arg[1])) ret = '%s(%s)' % (method, ", ".join(arglist)) if func.__doc__: - ret = "\ndescription: %s" % func.__doc__ + ret += "\ndescription: %s" % func.__doc__ return ret def handle_request(self,req): @@ -259,7 +262,7 @@ def handler(req, profiling=False): sys.stdout = strstream stats.sort_stats("time") stats.print_stats() - req.write("<pre>" strstream.getvalue() "</pre>") + req.write("<pre>" + strstream.getvalue() + "</pre>") _profiling_req = None else: opts = req.get_options() |