def step_menu_agent_install_key_selected(self, curui): ipt = ui.Inputs() ipt.set_message(self._get_message('enterInstallCode')) ipt.add('code', self._get_message('code'), self._install_code, True) ipt.prev_step(self.step_menu_agent) ipt.next_step(self.step_check_install_code) return ipt
def step_config_monitor_password(self, curui): if curui.get_variable().get() == 'configureSetPassword': self._change_pwd = ui.VarString("", True) self._change_repwd = ui.VarString("", True) ipt = ui.Inputs() ipt.set_key("set_password") ipt.set_message(self._get_message('configurePassword')) ipt.add('password', self._get_message('password'), self._change_pwd, True) ipt.add('rePassword', self._get_message('rePassword'), self._change_repwd, True) ipt.prev_step(self.step_menu_monitor_password) ipt.next_step(self.step_config_monitor_password_procede) return ipt elif curui.get_variable().get() == 'configureRemovePassword': chs = ui.Chooser() chs.set_key("remove_password") chs.set_message( self._get_message('configureRemovePasswordQuestion')) chs.add("yes", self._get_message('yes')) chs.add("no", self._get_message('no')) chs.set_variable(ui.VarString("no")) chs.set_accept_key("yes") chs.prev_step(self.step_menu_monitor_password) chs.next_step(self.step_config_monitor_password_procede) return chs
def step_configure_proxy_info(self, curui): if curui.get_variable().get() == 'HTTP' or curui.get_variable().get( ) == 'SOCKS4' or curui.get_variable().get( ) == 'SOCKS4A' or curui.get_variable().get() == 'SOCKS5': ipt = ui.Inputs() ipt.set_key(curui.get_key()) ipt.set_message(self._get_message('proxyInfo')) ipt.add('proxyHost', self._get_message('proxyHost'), self._proxy_host, True) ipt.add('proxyPort', self._get_message('proxyPort'), self._proxy_port, True) ipt.add('proxyAuthUser', self._get_message('proxyAuthUser'), self._proxy_user, False) ipt.add('proxyAuthPassword', self._get_message('proxyAuthPassword'), self._proxy_password, False) ipt.prev_step(self.step_configure_proxy_type) ipt.next_step(self.step_configure_proxy_set) return ipt else: self._proxy_host.set("") self._proxy_port.set("") self._proxy_user.set("") self._proxy_password.set("") return self.step_configure_proxy_set(curui)
def step_password(self, curui): self._ins_pwd=ui.VarString("", True) ipt = ui.Inputs() ipt.set_key("insert_password") ipt.set_message(self._get_message('configureInsertPassword')) ipt.add('password', self._get_message('password'), self._ins_pwd, True) ipt.next_step(self.step_check_password) return ipt