diff options
author | 2009-12-20 00:29:08 +0100 | |
---|---|---|
committer | 2009-12-20 00:29:08 +0100 | |
commit | 4e9cea16abfa63825d4dec04dd37f6630821249d (patch) | |
tree | ae3f3b77d7164e7ed1888cc689fbe259477a5791 /pyLoadCore.py | |
parent | Fixed normal hoster file_exists function (diff) | |
parent | reimplemented old CLI (diff) | |
download | pyload-4e9cea16abfa63825d4dec04dd37f6630821249d.tar.xz |
merged
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
|