def handle_thread(thread, timeout): if thread.is_alive(): sublime.set_timeout(lambda: handle_thread(thread, timeout), timeout) return elif api.result == None: sublime.status_message(message.TOOLING_API_CONNECTING_FAILED) return sobjects = api.result bulkapi.handle_bulkapi_query(sobjects)
def on_input(self, input): # Open Console self.window.run_command("show_panel", {"panel": "console", "toggle": False}) # Display the fields in a new view input = input.replace(" ", "") if input == "*": processor.handle_backup_all_sobjects(5) else: sobjects = input.split(";") bulkapi.handle_bulkapi_query(sobjects)
def on_input(self, input): # Open Console self.window.run_command("show_panel", { "panel": "console", "toggle": False }) # Display the fields in a new view input = input.replace(" ", "") if input == "*": processor.handle_backup_all_sobjects(5) else: sobjects = input.split(";") bulkapi.handle_bulkapi_query(sobjects)