def update_client_state(self, *args): var_stack.set_var("CLIENT_GUI_CMD").append(self.client_command_name_var.get()) self.update_client_input_file_combo() _, input_file_base_name = os.path.split(var_stack.unresolved_var("CLIENT_GUI_IN_FILE")) var_stack.set_var("CLIENT_GUI_IN_FILE_NAME").append(input_file_base_name) var_stack.set_var("CLIENT_GUI_OUT_FILE").append(self.client_output_path_var.get()) var_stack.set_var("CLIENT_GUI_RUN_BATCH").append(utils.bool_int_to_str(self.run_client_batch_file_var.get())) var_stack.set_var("CLIENT_GUI_CREDENTIALS").append(self.client_credentials_var.get()) var_stack.set_var("CLIENT_GUI_CREDENTIALS_ON").append(self.client_credentials_on_var.get()) if self.client_command_name_var.get() in self.commands_with_run_option_list: self.client_run_batch_file_checkbox.configure(state='normal') else: self.client_run_batch_file_checkbox.configure(state='disabled') command_line = " ".join(self.create_client_command_line()) self.client_command_line_var.set(var_stack.ResolveStrToStr.resolve(command_line))
def update_admin_state(self, *args): var_stack.set_var("ADMIN_GUI_CMD").append(self.admin_command_name_var.get()) current_config_path = var_stack.ResolveVarToStr("ADMIN_GUI_CONFIG_FILE", default="") new_config_path = self.admin_config_path_var.get() if current_config_path != new_config_path: self.admin_config_file_dirty = True var_stack.set_var("ADMIN_GUI_CONFIG_FILE").append(new_config_path) if self.admin_config_file_dirty: self.read_admin_config_file() _, input_file_base_name = os.path.split(var_stack.unresolved_var("ADMIN_GUI_CONFIG_FILE")) var_stack.set_var("ADMIN_GUI_CONFIG_FILE_NAME").append(input_file_base_name) var_stack.set_var("ADMIN_GUI_OUT_BATCH_FILE").append(self.admin_output_path_var.get()) var_stack.set_var("ADMIN_GUI_RUN_BATCH").append(utils.bool_int_to_str(self.run_admin_batch_file_var.get())) var_stack.set_var("ADMIN_GUI_LIMIT").append(self.admin_limit_var.get()) self.admin_stage_index_var.set(var_stack.ResolveVarToStr("__STAGING_INDEX_FILE__")) self.admin_svn_repo_var.set(var_stack.ResolveStrToStr("$(SVN_REPO_URL), REPO_REV: $(REPO_REV)")) sync_url = var_stack.ResolveVarToStr("SYNC_BASE_URL") self.admin_sync_url_var.set(sync_url) if self.admin_command_name_var.get() in self.commands_that_accept_limit_option: self.limit_path_entry_widget.configure(state='normal') else: self.limit_path_entry_widget.configure(state='disabled') if self.admin_command_name_var.get() in self.commands_with_run_option_list: self.admin_run_batch_file_checkbox.configure(state='normal') else: self.admin_run_batch_file_checkbox.configure(state='disabled') command_line = " ".join(self.create_admin_command_line()) self.admin_command_line_var.set(var_stack.ResolveStrToStr(command_line))