From 98f3ed1a9c99a07b15f54b78f521ad84ccbad126 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 11 Oct 2011 20:02:47 +0200 Subject: working restart core method --- module/Api.py | 5 ++--- module/remote/thriftbackend/ThriftClient.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'module') diff --git a/module/Api.py b/module/Api.py index 502792cf6..aad61cd5f 100644 --- a/module/Api.py +++ b/module/Api.py @@ -238,9 +238,8 @@ class Api(Iface): self.core.do_kill = True def restart(self): - """Not working, not likely to ever will""" - pass - #self.core.do_restart = True + """Restart pyload core""" + self.core.do_restart = True @permission(PERMS.STATUS) def getLog(self, offset=0): diff --git a/module/remote/thriftbackend/ThriftClient.py b/module/remote/thriftbackend/ThriftClient.py index 7e60d9fdc..74363cf62 100644 --- a/module/remote/thriftbackend/ThriftClient.py +++ b/module/remote/thriftbackend/ThriftClient.py @@ -88,7 +88,7 @@ class ThriftClient: if __name__ == "__main__": - client = ThriftClient(user="User", password="") + client = ThriftClient(user="User", password="pwhere") print client.getServerVersion() print client.statusServer() -- cgit v1.2.3