summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/uievent.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-06-17 12:11:51 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-17 16:08:30 +0100
commit4de9ee21f1fa4d04937cc7430fb1fc8b7a8f61e2 (patch)
tree47f2564af429444e3338d7f42dd1e4c6bf5d8eb7 /lib/bb/ui/uievent.py
parentd48e8bcb24e8fa5d4fd60fd2c9927a95976d8d8b (diff)
downloadbitbake-4de9ee21f1fa4d04937cc7430fb1fc8b7a8f61e2.tar.gz
knotty, xmlrpc: add observer-only mode
I add an observer only mode for the knotty UI and the XMLRPC server that will allow the UI to register a callback with a server in order to receive events. The observer-UI is able to send read-only commands to the server, and also is able to register as an event handler. Read-only commands are the commands that do not change the state of the server and have been marked as such in the command module. The observer can switch to a full client if it calls addClient at any time, and the server has no other client running. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/uievent.py')
-rw-r--r--lib/bb/ui/uievent.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/ui/uievent.py b/lib/bb/ui/uievent.py
index 0b9a836d0..038029fcf 100644
--- a/lib/bb/ui/uievent.py
+++ b/lib/bb/ui/uievent.py
@@ -84,6 +84,7 @@ class BBUIEventQueue:
def startCallbackHandler(self):
+ self.server.timeout = 1
while not self.server.quit:
self.server.handle_request()
self.server.server_close()