Logo Search packages:      
Sourcecode: maptransfer version File versions  Download package

def TransferHandler::TransferHandler::perform_transfers (   self,
  map_dir,
  map_url,
  download,
  upload 
)

Start the transfers listed in download and upload in seperate threads.

    download and upload need to be lists of dictionaries, containing:
     - mapname: the base name of the map to download, e.g. de_dust
     - mapexts: list of file extensions to be downloaded, e.g. [bsp.bz2, txt, nav]

Definition at line 48 of file TransferHandler.py.

00048                                                                        :
            """ Start the transfers listed in download and upload in seperate threads.
            
                download and upload need to be lists of dictionaries, containing:
                 - mapname: the base name of the map to download, e.g. de_dust
                 - mapexts: list of file extensions to be downloaded, e.g. [bsp.bz2, txt, nav]
            """
            
            self.mapsdir = map_dir
            self.mapsurl = map_url
            
            if self.downloader is None or not self.downloader.isAlive():
                  self.downloader = threading.Thread( target=self.perform_downloads, args=(download,) )
                  self.downloader.start()
            
            if self.uploader is None or not self.uploader.isAlive():
                  self.uploader = threading.Thread( target=self.perform_uploads, args=(upload,) )
                  self.uploader.start()
      
      
      def perform_downloads( self, download ):


Generated by  Doxygen 1.6.0   Back to index