Beispiel #1
0
    def main(self):
        setupWizard = self.getSetupWizard()

        Downloader.wizard(setupWizard).get(
            "http://download.spotify.com/Spotify%20Installer.exe",
            "/tmp/test.exe")

        setupWizard.close()
Beispiel #2
0
        def POL_Download(self):
            setupWindowId = self.command[2]
            url = self.command[3]
            currentDirectory = self.command[4]

            try:
                checkSum = self.command[5]
            except IndexError:
                checkSum = ""

            setupWindow = self.setupWindowManager.getWindow(setupWindowId)

            localFile = os.path.join(
                currentDirectory,
                Downloader.wizard(setupWindow).findFileNameFromURL(URL(url)))

            downloader = Downloader.wizard(setupWindow).get(url, localFile)

            if (checkSum != ""):
                downloader.check(checkSum)
Beispiel #3
0
        def POL_Download(self):
            setupWindowId = self.command[2]
            url = self.command[3]
            currentDirectory = self.command[4]

            try:
                checkSum = self.command[5]
            except IndexError:
                checkSum = ""

            setupWindow = self.setupWindowManager.getWindow(setupWindowId)

            localFile = os.path.join(currentDirectory,
                                     Downloader.wizard(setupWindow).findFileNameFromURL(URL(url)))


            downloader = Downloader.wizard(setupWindow).get(url, localFile)


            if(checkSum != ""):
                downloader.check(checkSum)
Beispiel #4
0
    def main(self):
        setupWizard = self.getSetupWizard()

        Downloader.wizard(setupWizard).get("http://download.spotify.com/Spotify%20Installer.exe", "/tmp/test.exe")

        setupWizard.close()