diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-10 23:43:10 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-10 23:43:10 +0100 |
commit | 2b353fa266c13b77b2c77af797dc28c8380b9443 (patch) | |
tree | db1e1b9f67cf87ffb711f91c643d665bae1bee8a /module/remote/ThriftBackend.py | |
parent | thrift + setup fixes (diff) | |
download | pyload-2b353fa266c13b77b2c77af797dc28c8380b9443.tar.xz |
more fixes
Diffstat (limited to 'module/remote/ThriftBackend.py')
-rw-r--r-- | module/remote/ThriftBackend.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/remote/ThriftBackend.py b/module/remote/ThriftBackend.py index bbad7e7d6..9e645b07e 100644 --- a/module/remote/ThriftBackend.py +++ b/module/remote/ThriftBackend.py @@ -19,10 +19,11 @@ from module.remote.RemoteManager import BackendBase from thriftbackend.Handler import Handler from thriftbackend.Processor import Processor +from thriftbackend.Protocol import ProtocolFactory from thrift.transport import TSocket from thrift.transport import TTransport -from thrift.protocol import TBinaryProtocol + from thrift.server import TServer class ThriftBackend(BackendBase): @@ -32,7 +33,7 @@ class ThriftBackend(BackendBase): transport = TSocket.TServerSocket(7228) #@TODO unicode encoding tfactory = TTransport.TBufferedTransportFactory() - pfactory = TBinaryProtocol.TBinaryProtocolFactory() + pfactory = ProtocolFactory() #self.server = TServer.TSimpleServer(processor, transport, tfactory, pfactory) self.server = TServer.TThreadedServer(processor, transport, tfactory, pfactory) |