summaryrefslogtreecommitdiffstats
path: root/bitbake
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 /bitbake
parentcf13bfe6612f450c62fe56b1d204fa747fa8bfd2 (diff)
downloadpoky-e69e5a7e0ba328f29faaeacf815690f2ca9daf41.tar.gz
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>
Diffstat (limited to 'bitbake')
-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):
242 return 242 return
243 243
244class BitbakeServerInfo(): 244class BitbakeServerInfo():
245 def __init__(self, server): 245 def __init__(self, host, port):
246 self.host = server.host 246 self.host = host
247 self.port = server.port 247 self.port = port
248 248
249class BitBakeServerConnection(): 249class BitBakeServerConnection():
250 def __init__(self, serverinfo): 250 def __init__(self, serverinfo):
@@ -278,7 +278,7 @@ class BitBakeServer(object):
278 return self.server.register_idle_function 278 return self.server.register_idle_function
279 279
280 def saveConnectionDetails(self): 280 def saveConnectionDetails(self):
281 self.serverinfo = BitbakeServerInfo(self.server) 281 self.serverinfo = BitbakeServerInfo(self.server.host, self.server.port)
282 282
283 def detach(self, cooker_logfile): 283 def detach(self, cooker_logfile):
284 daemonize.createDaemon(self.server.serve_forever, cooker_logfile) 284 daemonize.createDaemon(self.server.serve_forever, cooker_logfile)