def createBackup(self, request): if request.method == "POST": if request.POST['createBackup']: backup_location = iosRecovery.main( request.POST['createBackup'] ) # Return already exists message to user/web app for user to know if backup_location == "Already Exists": print backup_location else: self.update( backup_location )
def createBackup(self, request): if request.method == "POST": if request.POST['createBackup']: backup_location = iosRecovery.main( request.POST['createBackup']) # Return already exists message to user/web app for user to know if backup_location == "Already Exists": print backup_location else: self.update(backup_location)
def createBackup(self, request): if request.method == "POST": if request.POST['createBackup']: extract_location = iosRecovery.main( request.POST['createBackup'] ) # Return already exists message to user/web app for user to know if extract_location == "Already Exists": print "Backup: " + extract_location + " already exists." else: self.update( extract_location )
def createBackup(self, request): if request.method == "POST": if request.POST['createBackup']: extract_location = iosRecovery.main( request.POST['createBackup']) # Return already exists message to user/web app for user to know if extract_location == "Already Exists": print "Backup: " + extract_location + " already exists." else: self.update(extract_location)