diff options
Diffstat (limited to 'module/remote')
-rw-r--r-- | module/remote/socketbackend/__init__.py | 1 | ||||
-rw-r--r-- | module/remote/socketbackend/create_ttypes.py | 3 | ||||
-rw-r--r-- | module/remote/thriftbackend/ThriftClient.py | 22 |
3 files changed, 0 insertions, 26 deletions
diff --git a/module/remote/socketbackend/__init__.py b/module/remote/socketbackend/__init__.py index 4b31e848b..e69de29bb 100644 --- a/module/remote/socketbackend/__init__.py +++ b/module/remote/socketbackend/__init__.py @@ -1 +0,0 @@ -__author__ = 'christian' diff --git a/module/remote/socketbackend/create_ttypes.py b/module/remote/socketbackend/create_ttypes.py index 65bd11dbe..64398c3e7 100644 --- a/module/remote/socketbackend/create_ttypes.py +++ b/module/remote/socketbackend/create_ttypes.py @@ -84,6 +84,3 @@ class BaseObject(object): f.write("\n") f.close() - -if __name__ == "__main__": - main() diff --git a/module/remote/thriftbackend/ThriftClient.py b/module/remote/thriftbackend/ThriftClient.py index 4e11fdc0d..913719ed9 100644 --- a/module/remote/thriftbackend/ThriftClient.py +++ b/module/remote/thriftbackend/ThriftClient.py @@ -85,25 +85,3 @@ class ThriftClient: def __getattr__(self, item): return getattr(self.client, item) - -if __name__ == "__main__": - - client = ThriftClient(user="User", password="pwhere") - - print client.getServerVersion() - print client.statusServer() - print client.statusDownloads() - q = client.getQueue() - -# for p in q: -# data = client.getPackageData(p.pid) -# print data -# print "Package Name: ", data.name - - - print client.getServices() - print client.call(Pyload.ServiceCall("UpdateManager", "recheckForUpdates")) - - print client.getConfigValue("download", "limit_speed", "core") - - client.close() |