コード例 #1
0
    def handle(self, *args, **options):
        destination_dir = None
        if len(args) == 1:
            destination_dir = args[0]

        downloader = AddressBaseBasicDownloader()
        downloaded_file = downloader.download(destination_dir)
        return downloaded_file
コード例 #2
0
 def _download(self, destination_dir, force=False):
     print 'downloading'
     downloader = AddressBaseBasicDownloader()
     return downloader.download(destination_dir, force)
 def _download(self, destination_dir, force=False):
     print 'downloading'
     downloader = AddressBaseBasicDownloader()
     return downloader.download(destination_dir, force)
コード例 #4
0
 def _downloader(self, mock_dl_mgr):
     return AddressBaseBasicDownloader(mock_dl_mgr)