Package flumotion :: Package component :: Package misc :: Package httpserver :: Module httpfile :: Class FileTransfer
[hide private]

Class FileTransfer

source code

extern.log.log.Loggable --+
                          |
                         FileTransfer

A class to represent the transfer of a file over the network.

Instance Methods [hide private]
 
__init__(self, file, size, consumer) source code
 
resumeProducing(self) source code
 
pauseProducing(self) source code
 
stopProducing(self) source code

Inherited from extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  consumer = None

Inherited from extern.log.log.Loggable: __implemented__, __provides__, logCategory

Method Details [hide private]

__init__(self, file, size, consumer)
(Constructor)

source code 
Parameters:
  • file (file) - a file handle
  • size (int) - file position to which file should be read
  • consumer (twisted.internet.interfaces.IFinishableConsumer) - consumer to receive the data