def ui_content(self): ws = [ ui.Header("header[0]", "Require a password for local console access?"), ui.Label( "label[0]", "Please enter the current admin " + "password. You may also change the admin password " + "if required. If the new password fields are left" + "blank the password will remain the same."), ui.Label("label[1]", "Password for local console access"), ui.Divider("divider[0]"), ui.PasswordEntry("upgrade.current_password", "Current Password:"******"divider[1]"), ui.PasswordEntry("upgrade.password", "Password:"******"upgrade.password_confirmation", "Confirm Password:"******"divider[2]"), ui.Label("current_password.info", ""), ui.Label("password.info", self.__no_new_password_msg) ] self.widgets.add(ws) page = ui.Page("password", ws) page.buttons = [ ui.QuitButton("button.quit", "Quit"), ui.Button("button.back", "Back"), ui.SaveButton("button.next", "Update") ] return page
def ui_content(self): ws = [ ui.Header("header[0]", "CIM"), ui.Checkbox("cim.enabled", "Enable CIM"), ui.Divider("divider[0]"), ui.Header("header[1]", "CIM Password"), ui.PasswordEntry("cim.password", "Password:"******"cim.password_confirmation", "Confirm Password:"******"page", ws) self.widgets.add(ws) return page
def ui_content(self): ws = [ ui.Header("header[0]", _("Require a password for the admin user?")), ui.Label( "label[0]", _("Please enter the current admin ") + _("password. You may also change the admin password ") + _("if required. If the new password fields are left ") + _("blank the password will remain the same.")), ui.Label("label[1]", _("Password for the admin user")), ui.Divider("divider[0]"), ui.PasswordEntry("upgrade.current_password", _("Current Password:"******"divider[1]"), ui.ConfirmedEntry("upgrade.password", _("Password:"******"current_password.info", ""), ui.Label("password.info", self.__no_new_password_msg) ] page = ui.Page("password", ws) page.buttons = [ ui.QuitButton("button.quit", "Quit"), ui.Button("button.back", "Back"), ui.SaveButton("button.next", "Update") ] self.widgets.add(page) return page
def ui_content(self): ws = [ ui.Header("header[0]", "Remote Access"), ui.Checkbox("ssh.pwauth", "Enable SSH password authentication"), ui.Header("header[1]", "Strong Random Number Generator"), ui.Checkbox("strongrng.disable_aesni", "Disable AES-NI"), ui.Entry("strongrng.num_bytes", "Bytes Used:"), ui.Header("header[2]", "Local Access"), ui.PasswordEntry("passwd.admin.password", "Password:"******"passwd.admin.password_confirmation", "Confirm Password:"******"page", ws) self.widgets.add(page) return page
def ui_content(self): ws = [ui.Header("header[0]", "Require a password for the admin user?"), ui.Divider("divider[0]"), ui.PasswordEntry("admin.password", "Password:"******"admin.password_confirmation", "Confirm Password:"******"divider[1]"), ui.Label("password.info", "") ] self.widgets.add(ws) page = ui.Page("password", ws) page.buttons = [ui.QuitButton("button.quit", "Quit"), ui.Button("button.back", "Back"), ui.SaveButton("button.next", "Install")] return page
def __init__(self, title, description, plugin): self.keys = [ "rhn.proxyhost", "rhn.proxyport", "rhn.proxyuser", "rhn.proxypassword" ] def clear_invalid(dialog, changes): [plugin.stash_change(prefix) for prefix in self.keys] title = _("RHSM Proxy Information") entries = [ ui.Entry("rhn.proxyhost", "Server:"), ui.Entry("rhn.proxyport", "Port:"), ui.Entry("rhn.proxyuser", "Username:"******"rhn.proxypassword", "Password:"******"label[0]", description), ui.Divider("divider[0]") ] children.extend(entries) super(ProxyDialog, self).__init__("proxy.dialog", title, children) self.buttons = [ ui.CloseButton("proxy.save", _("Save"), enabled=True), ui.CloseButton("proxy.close", _("Cancel")) ] b = plugins.UIElements(self.buttons) b["proxy.close"].on_activate.clear() b["proxy.close"].on_activate.connect(ui.CloseAction()) b["proxy.close"].on_activate.connect(clear_invalid)
def ui_content(self): ws = [ ui.Header("header[0]", "Require a password for local console access?"), ui.Divider("divider[0]"), ui.PasswordEntry("root.password", "Password:"******"root.password_confirmation", "Confirm Password:"******"password", ws) page.buttons = [ ui.QuitButton("button.quit", "Quit"), ui.Button("button.back", "Back"), ui.SaveButton("button.next", "Install") ] return page
def ui_content(self): if self.application.args.dry: net_is_configured = True else: net_is_configured = NodeNetwork().is_configured() if not net_is_configured: ws = ([ ui.Divider("notice.divider"), ui.Notice( "network.notice", "Networking is not configured, please " + "configure it before configuring RHN"), ui.Divider("notice.divider") ]) else: status, rhn_type = get_rhn_status() if status == 0: rhn_msg = ("RHN Registration is required only if you wish " + "to use Red Hat Enterprise Linux with virtual " + "guests subscriptions for your guests.") else: rhn_msg = "RHN Registration\n\nRegistration Status: %s" \ % rhn_type ws = [ ui.Header("header[0]", rhn_msg), ui.Entry("rhn.user", "Login:"******"rhn.password", "Password:"******"rhn.profilename", "Profile Name (optional):"), ui.Divider("divider[0]"), ui.Options("rhn.type", "Type", self._rhn_types), ui.Entry("rhn.url", "URL:"), ui.Entry("rhn.ca", "CA URL:"), ui.Header("header[0]", "HTTP Proxy Configuration"), ui.Entry("rhn.proxyhost", "Server:"), ui.Entry("rhn.proxyport", "Port:"), ui.Entry("rhn.proxyuser", "Username:"******"rhn.proxypassword", "Password:"******"divider[1]"), ] page = ui.Page("page", ws) self.widgets.add(ws) return page
def __init__(self, path="lock.dialog", title="This screen is locked."): super(LockDialog, self).__init__(path, title, []) self.children = [ ui.Header("lock.label[0]", "Enter the admin password to unlock"), ui.KeywordLabel("username", "Username: "******"password", "Password:"******"action.unlock", "Unlock")] self.escape_key = None
def _build_lock_dialog(self): widgets = [ ui.Header("lock.label[0]", "Enter the admin password to unlock"), ui.KeywordLabel("username", "Username: "******"password", "Password:"******"lock.dialog", "This screen is locked.", widgets) page.buttons = [ui.Button("action.unlock", "Unlock")] page.escape_key = None return page
def ui_content(self): cfg = rhn_model.RHN().retrieve() if self.application.args.dry: net_is_configured = True else: net_is_configured = NodeNetwork().is_configured() if not net_is_configured: ws = ([ ui.Divider("notice.divider"), ui.Notice( "network.notice", "Networking is not configured, please " + "configure it before configuring RHSM"), ui.Divider("notice.divider") ]) else: rhn_msg = ("RHSM Registration is required only if you wish " + "to use Red Hat Enterprise Linux with virtual " + "guests subscriptions for your guests.") if cfg["rhntype"] and self._get_status(cfg) is not None: rhn_msg = self._get_status(cfg) ws = [ ui.Header("header[0]", rhn_msg), ui.Entry("rhn.username", "Login:"******"rhn.password", "Password:"******"rhn.profilename", "Profile Name (optional):"), ui.Divider("divider[0]"), ui.Options("rhn.type", "Type", self._rhn_types), ui.Entry("rhn.url", "URL:"), ui.Entry("rhn.ca", "CA URL:"), ui.Entry("rhn.org", "Organization:"), ui.Entry("rhn.environment", "Environment:"), ui.Entry("rhn.activation_key", "Activation Key:"), ui.Button("button.proxy", "HTTP Proxy Configuration"), ] page = ui.Page("page", ws) self.widgets.add(ws) return page
def ui_content(self): port_widgets = [ ui.Entry("engine_cfg.httpPORT", "HTTP Port:"), ui.Entry("engine_cfg.httpsPORT", "HTTPS Port:") ] authpasswd_widgets = [ ui.PasswordEntry("engine_cfg.authPASS", "Admin passwd:"), ui.PasswordEntry("engine_cfg.authPASS_confirmation", "Re passwd:") ] license_widgets = [ ui.Entry("engine_cfg.orgNAME", "Org Name:"), ui.Entry("engine_cfg.hostFQDN", "Domain name:") ] adminpasswd_widgets = [ ui.PasswordEntry("engine_cfg.adminPASS", "DB passwd:"), ui.PasswordEntry("engine_cfg.adminPASS_confirmation", "Re passwd:") ] #domain_widgets = [ # ] #options_widgets = [ui.Options("engine_cfg.dbTYPE","DB type:", self._db_type), # ui.Options("engine_cfg.firewall","Firewall:",self._firewall) # ] ws = [ ui.Header("header[0]", "Engine Configuration"), ui.Row("row[0]", port_widgets), ui.Row("row[1]", authpasswd_widgets), #ui.Row("row[2]", license_widgets), ui.Entry("engine_cfg.orgNAME", "Org Name:"), ui.Entry("engine_cfg.hostFQDN", "Domain name:"), #ui.Row("row[3]", domain_widgets), ui.Row("row[3]", adminpasswd_widgets), ui.Entry("engine_cfg.isoPATH", "ISO path:", align_vertical=True), ui.Entry("engine_cfg.license", "Org License:", align_vertical=True), ui.Divider("divider[1]"), ui.ErrorLabel("engine_cfg.infomation", "infomatoin:"), ui.Divider("divider[2]"), #ui.Options("engine_cfg.model","App modes:", self._model), #ui.Options("engine_cfg.storage","Storage:", self._storage), #ui.Options("engine_cfg.isoASK","NFS ISO Domain:",self._iso_domain), #ui.Options("engine_cfg.dbTYPE","DB type:", self._db_type), #ui.Options("engine_cfg.firewall","Firewall:",self._firewall), #ui.Entry("vdsm_cfg.address", "Management Server:"), #ui.Entry("vdsm_cfg.port", "Management Server Port:"), #ui.Divider("divider[0]"), ui.Row("row[4]", [ ui.Button("action.fetch_options", "Advance options"), ui.Button("action.reset", "Reset") ]), ui.Divider("divider[3]"), ui.Button("action.register", "save & engine-setup") #ui.KeywordLabel("vdsm_cfg.cert", "Certificate Status: "), #ui.Divider("divider[1]"), #ui.Label("vdsm_cfg.password._label", # "Optional password for adding Node through oVirt " + # "Engine UI"), #ui.PasswordEntry("vdsm_cfg.password", "Password:"******"vdsm_cfg.password_confirmation", # "Confirm Password:"******"/etc/pki/ovirt-engine/keys/engine.p12"): # self._model_extra("engine_cfg.httpPORT").enabled(False) # self._model_extra("engine_cfg.httpsPORT").enabled(False) # self._model_extra("engine_cfg.authPASS").enabled(False) # self._model_extra("engine_cfg.authPASS_confirmation").enabled(False) # self._model_extra("engine_cfg.orgNAME").enabled(False) # self._model_extra("engine_cfg.hostFQDN").enabled(False) # self._model_extra("engine_cfg.adminPASS").enabled(False) # self._model_extra("engine_cfg.adminPASS_confirmation").enabled(False) # self._model_extra("engine_cfg.isoPATH").enabled(False) # self._model_extra("engine_cfg.license").enabled(False) page = ui.Page("page", ws) #page.buttons = [ui.SaveButton("action.register", "save & engine-setup")] page.buttons = [] self.widgets.add(page) return page