From 18d827faf2960efcfb2e1196375e5542e25d20ab Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 20 Dec 2009 00:27:02 +0100 Subject: reimplemented old CLI --- pyLoadCore.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 1951d6db1..97ca25ffd 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -302,11 +302,6 @@ class Core(object): elif start < now and end < now and start > end: return True else: return False - #~ def init_webserver(self): - #~ self.webserver = WebServer(self) - #~ if self.config['webinterface']['activated']: - #~ self.webserver.start() - #################################### ########## XMLRPC Methods ########## #################################### @@ -371,6 +366,12 @@ class ServerMethods(): def unpause_server(self): self.core.thread_list.pause = False + def toggle_pause(self): + if self.core.thread_list.pause: + self.core.thread_list.pause = False + else: + self.core.thread_list.pause = True + def status_server(self): status = {} status['pause'] = self.core.thread_list.pause -- cgit v1.2.3