summaryrefslogtreecommitdiffstats
path: root/module/remote
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-04 20:40:09 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-04 20:40:09 +0100
commit138c28777f8a09fd88c4002a00c87e8bd0c7be74 (patch)
tree5d8aea3a8dbc65276dc04722e62375ce6dc61b6a /module/remote
parentBasePlugin: attempt to fix #266 (diff)
downloadpyload-138c28777f8a09fd88c4002a00c87e8bd0c7be74.tar.xz
closed #418
Diffstat (limited to 'module/remote')
-rwxr-xr-xmodule/remote/thriftbackend/thriftgen/pyload/Pyload-remote2
-rw-r--r--module/remote/thriftbackend/thriftgen/pyload/Pyload.py17
2 files changed, 15 insertions, 4 deletions
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
index e2e56d5ca..854b1589e 100755
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
@@ -74,7 +74,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' void orderPackage(PackageID pid, i16 position)'
print ' void orderFile(FileID fid, i16 position)'
print ' void setPackageData(PackageID pid, data)'
- print ' void deleteFinished()'
+ print ' deleteFinished()'
print ' void restartFailed()'
print ' bool isCaptchaWaiting()'
print ' CaptchaTask getCaptchaTask(bool exclusive)'
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload.py b/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
index 677e4afe2..a1bc63f75 100644
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
@@ -1873,7 +1873,7 @@ class Client(Iface):
def deleteFinished(self, ):
self.send_deleteFinished()
- self.recv_deleteFinished()
+ return self.recv_deleteFinished()
def send_deleteFinished(self, ):
self._oprot.writeMessageBegin('deleteFinished', TMessageType.CALL, self._seqid)
@@ -1892,7 +1892,9 @@ class Client(Iface):
result = deleteFinished_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
- return
+ if result.success is not None:
+ return result.success
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteFinished failed: unknown result");
def restartFailed(self, ):
self.send_restartFailed()
@@ -3085,7 +3087,7 @@ class Processor(Iface, TProcessor):
args.read(iprot)
iprot.readMessageEnd()
result = deleteFinished_result()
- self._handler.deleteFinished()
+ result.success = self._handler.deleteFinished()
oprot.writeMessageBegin("deleteFinished", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
@@ -4904,13 +4906,22 @@ class deleteFinished_args(TBase):
class deleteFinished_result(TBase):
+ """
+ Attributes:
+ - success
+ """
__slots__ = [
+ 'success',
]
thrift_spec = (
+ (0, TType.LIST, 'success', (TType.I32,None), None, ), # 0
)
+ def __init__(self, success=None,):
+ self.success = success
+
class restartFailed_args(TBase):