diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-12-20 00:27:02 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-12-20 00:27:02 +0100 |
commit | 18d827faf2960efcfb2e1196375e5542e25d20ab (patch) | |
tree | 7cea392fd00051ba216e91b9199003286d2d2610 /pyLoadCore.py | |
parent | Fixed file_exists function for local files (diff) | |
download | pyload-18d827faf2960efcfb2e1196375e5542e25d20ab.tar.xz |
reimplemented old CLI
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 11 |
1 files changed, 6 insertions, 5 deletions
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
|