From 32b39c72e45881abfdb14aacdde96eab5cc8e3f2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 12 Dec 2012 12:07:56 +0100 Subject: [PATCH] Minor update --- lib/utils/xmlrpc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils/xmlrpc.py b/lib/utils/xmlrpc.py index c08ada166..29ea8a9e0 100644 --- a/lib/utils/xmlrpc.py +++ b/lib/utils/xmlrpc.py @@ -19,7 +19,7 @@ try: from lib.core.settings import UNICODE_ENCODING from lib.core.settings import XMLRPC_SERVER_PORT except ImportError: - pass + XMLRPC_SERVER_PORT = 8776 class XMLRPCServer: def __init__(self, port): @@ -61,8 +61,9 @@ if __name__ == "__main__": pass try: - addr = "http://localhost:%d" % (int(sys.argv[1]) if len(sys.argv) > 1 else 8776) + addr = "http://localhost:%d" % (int(sys.argv[1]) if len(sys.argv) > 1 else XMLRPC_SERVER_PORT) print "[i] Starting debug XML-RPC client to '%s'..." % addr + server = xmlrpclib.ServerProxy(addr) print "[i] Available RPC methods: %s" % str(server.system.listMethods()).strip("[]") print "[i] Server instance name: 'server'"