From e083caef997b87150da03c05194baf8cd17f06a7 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 19 Jun 2009 22:50:37 +0200 Subject: some new cli stuff (no interactive functions yet) --- pyLoadCore.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 2f89b9af6..84d1322dd 100644 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -221,9 +221,16 @@ class Core(object): obj = RequestObject() obj.command = "update" obj.data = self.get_downloads() - + obj.status = self.server_status() self.server.push_all(obj) + def server_status(self): + status = {} + status['pause'] = self.thread_list.pause + status['queue'] = len(self.file_list.files) + return status + + def init_server(self): self.server = ServerThread(self) self.server.start() -- cgit v1.2.3