def prompt(self, args = None): """Overriden prompt as password typing is special.""" EditTUIDialog.prompt(self, EditTUISpokeEntry(_("Password"), "", EditTUIDialog.PASSWORD, True)) if self.value == None: return self._password = self.value self.apply() self.close()
def refresh(self, args=None): EditTUIDialog.refresh(self, args) self._window += [ TextWidget( _("Please select new root password. You will have to type it twice." )), "" ] return True
def refresh(self, args=None): EditTUIDialog.refresh(self, args) return True
def __init__(self, app, data, storage, payload, instclass, time_spoke): EditTUIDialog.__init__(self, app, data, storage, payload, instclass) self._time_spoke = time_spoke self._new_ntp_server = None
def refresh(self, args = None): EditTUIDialog.refresh(self, args) self._window += [TextWidget(_("Please select new root password. You will have to type it twice.")), ""] return True
def __init__(self, app, data, storage, payload, instclass): EditTUIDialog.__init__(self, app, data, storage, payload, instclass) self._password = None
def __init__(self, data, storage, payload, instclass, time_spoke): EditTUIDialog.__init__(self, data, storage, payload, instclass) self.title = N_("Add NTP server address") self._time_spoke = time_spoke self._new_ntp_server = None
def refresh(self, args=None): EditTUIDialog.refresh(self, args) msg = _("Please select new root password. You will have to type it twice.") self.window.add_with_separator(TextWidget(msg))
def __init__(self, data, storage, payload, instclass): EditTUIDialog.__init__(self, data, storage, payload, instclass, "root") self.title = N_("Root password") self.initialize_start() self._password = None self.initialize_done()