def get(self): key = self.request.get(PARAM_KEY) builder = self.request.get(PARAM_BUILDER) test_type = self.request.get(PARAM_TEST_TYPE) name = self.request.get(PARAM_NAME) logging.debug( "Deleting File, builder: %s, test_type: %s, name: %s, key: %s.", builder, test_type, name, key) TestFile.delete_file(key, builder, test_type, name, 100) # Display file list after deleting the file. self.redirect("/testfile?builder=%s&testtype=%s&name=%s" % (builder, test_type, name))
def get(self): key = self.request.get(PARAM_KEY) builder = self.request.get(PARAM_BUILDER) test_type = self.request.get(PARAM_TEST_TYPE) name = self.request.get(PARAM_NAME) logging.debug( "Deleting File, builder: %s, test_type: %s, name: %s, key: %s.", builder, test_type, name, key) TestFile.delete_file(key, builder, test_type, name, 100) # Display file list after deleting the file. self.redirect("/testfile?builder=%s&testtype=%s&name=%s" % (builder, test_type, name))
def get(self): key = self.request.get(PARAM_KEY) master = self.request.get(PARAM_MASTER) builder = self.request.get(PARAM_BUILDER) test_type = self.request.get(PARAM_TEST_TYPE) name = self.request.get(PARAM_NAME) num_files = self.request.get(PARAM_NUM_FILES) before = self.request.get(PARAM_BEFORE) logging.debug( "Deleting File, master: %s, builder: %s, test_type: %s, name: %s, before: %s, key: %s.", master, builder, test_type, name, before, key) limit = int(num_files) if num_files else 1 num_deleted = TestFile.delete_file(key, master, builder, test_type, name, before, limit) self.response.set_status(200) self.response.out.write("Deleted %d files." % num_deleted)
def get(self): key = self.request.get(PARAM_KEY) # Intentionally don't munge the master from deprecated names here. # Assume anyone deleting files wants explicit control. master = self.request.get(PARAM_MASTER) builder = self.request.get(PARAM_BUILDER) test_type = self.request.get(PARAM_TEST_TYPE) build_number = self.request.get(PARAM_BUILD_NUMBER, default_value=None) name = self.request.get(PARAM_NAME) num_files = self.request.get(PARAM_NUM_FILES) before = self.request.get(PARAM_BEFORE) logging.debug( "Deleting File, master: %s, builder: %s, test_type: %s, build_number: %s, name: %s, before: %s, key: %s.", master, builder, test_type, build_number, name, before, key) limit = int(num_files) if num_files else 1 num_deleted = TestFile.delete_file(key, master, builder, test_type, build_number, name, before, limit) self.response.set_status(200) self.response.out.write("Deleted %d files." % num_deleted)
def get(self): key = self.request.get(PARAM_KEY) # Intentionally don't munge the master from deprecated names here. # Assume anyone deleting files wants explicit control. master = self.request.get(PARAM_MASTER) builder = self.request.get(PARAM_BUILDER) test_type = self.request.get(PARAM_TEST_TYPE) build_number = self.request.get(PARAM_BUILD_NUMBER, default_value=None) name = self.request.get(PARAM_NAME) num_files = self.request.get(PARAM_NUM_FILES) before = self.request.get(PARAM_BEFORE) logging.debug( "Deleting File, master: %s, builder: %s, test_type: %s, build_number: %s, name: %s, before: %s, key: %s.", master, builder, test_type, build_number, name, before, key) limit = int(num_files) if num_files else 1 num_deleted = TestFile.delete_file(key, master, builder, test_type, build_number, name, before, limit) self.response.set_status(200) self.response.out.write("Deleted %d files." % num_deleted)