def __init__(self, root): TR069Service.__init__(self) self._last_parameter_key = '' self.root = root self.download_manager = download.DownloadManager() self.transfer_complete_received_cb = None self.inform_response_received_cb = None
def __init__(self, sock, address, root): """Initialize a RemoteCommandStreamer. Args: sock: the socket provided by mainloop.Listen address: the address provided by mainloop.Listen root: the root of the TR-069 (core.Exporter) object tree. """ quotedblock.QuotedBlockStreamer.__init__(self, sock, address) self.root = root self.download_manager = download.DownloadManager()
def allocTestDM(self): dm = download.DownloadManager() dm.SetDirectories(self.tmpdir, self.tmpdir) cmpl = MockTransferComplete() dm.send_transfer_complete = cmpl.SendTransferComplete return (dm, cmpl)