diff options
-rw-r--r-- | bitbake/lib/bb/server/xmlrpcserver.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/xmlrpcserver.py b/bitbake/lib/bb/server/xmlrpcserver.py index 04b0b17db1..fd4245a51a 100644 --- a/bitbake/lib/bb/server/xmlrpcserver.py +++ b/bitbake/lib/bb/server/xmlrpcserver.py | |||
@@ -14,6 +14,8 @@ from xmlrpc.server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler | |||
14 | import bb.server.xmlrpcclient | 14 | import bb.server.xmlrpcclient |
15 | 15 | ||
16 | import bb | 16 | import bb |
17 | import bb.cooker | ||
18 | import bb.event | ||
17 | 19 | ||
18 | # This request handler checks if the request has a "Bitbake-token" header | 20 | # This request handler checks if the request has a "Bitbake-token" header |
19 | # field (this comes from the client side) and compares it with its internal | 21 | # field (this comes from the client side) and compares it with its internal |
@@ -54,7 +56,7 @@ class BitBakeXMLRPCServer(SimpleXMLRPCServer): | |||
54 | 56 | ||
55 | def __init__(self, interface, cooker, parent): | 57 | def __init__(self, interface, cooker, parent): |
56 | # Use auto port configuration | 58 | # Use auto port configuration |
57 | if (interface[1] == -1): | 59 | if interface[1] == -1: |
58 | interface = (interface[0], 0) | 60 | interface = (interface[0], 0) |
59 | SimpleXMLRPCServer.__init__(self, interface, | 61 | SimpleXMLRPCServer.__init__(self, interface, |
60 | requestHandler=BitBakeXMLRPCRequestHandler, | 62 | requestHandler=BitBakeXMLRPCRequestHandler, |
@@ -87,11 +89,12 @@ class BitBakeXMLRPCServer(SimpleXMLRPCServer): | |||
87 | def handle_requests(self): | 89 | def handle_requests(self): |
88 | self._handle_request_noblock() | 90 | self._handle_request_noblock() |
89 | 91 | ||
90 | class BitBakeXMLRPCServerCommands(): | 92 | class BitBakeXMLRPCServerCommands: |
91 | 93 | ||
92 | def __init__(self, server): | 94 | def __init__(self, server): |
93 | self.server = server | 95 | self.server = server |
94 | self.has_client = False | 96 | self.has_client = False |
97 | self.event_handle = None | ||
95 | 98 | ||
96 | def registerEventHandler(self, host, port): | 99 | def registerEventHandler(self, host, port): |
97 | """ | 100 | """ |