Example #1
0
    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 )
Example #2
0
    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)
Example #3
0
	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 )
Example #4
0
        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)