summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-01-06 17:02:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-06 15:55:56 +0000
commite69e5a7e0ba328f29faaeacf815690f2ca9daf41 (patch)
tree9dd980fbf2becd660df5c29d901b4b8c9554c329
parentcf13bfe6612f450c62fe56b1d204fa747fa8bfd2 (diff)
downloadpoky-e69e5a7e0ba328f29faaeacf815690f2ca9daf41.tar.gz
poky-e69e5a7e0ba328f29faaeacf815690f2ca9daf41.tar.bz2
poky-e69e5a7e0ba328f29faaeacf815690f2ca9daf41.zip
xmlrpc: Change BitbakeServerInfo init function
Pass host and port to BitbakeServerInfo class instead of the "server" instance. With this change, GUI can connect with server individually by host address and port. (Bitbake rev: 5124351d6c287185723c98e6e4400c5402a5c8a8) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index a7ac969ae2..b5980c6084 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -242,9 +242,9 @@ class BitBakeXMLRPCServer(SimpleXMLRPCServer):
return
class BitbakeServerInfo():
- def __init__(self, server):
- self.host = server.host
- self.port = server.port
+ def __init__(self, host, port):
+ self.host = host
+ self.port = port
class BitBakeServerConnection():
def __init__(self, serverinfo):
@@ -278,7 +278,7 @@ class BitBakeServer(object):
return self.server.register_idle_function
def saveConnectionDetails(self):
- self.serverinfo = BitbakeServerInfo(self.server)
+ self.serverinfo = BitbakeServerInfo(self.server.host, self.server.port)
def detach(self, cooker_logfile):
daemonize.createDaemon(self.server.serve_forever, cooker_logfile)