Esempio n. 1
0
    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()
Esempio n. 2
0
    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()
Esempio n. 3
0
    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
Esempio n. 4
0
 def refresh(self, args=None):
     EditTUIDialog.refresh(self, args)
     return True
Esempio n. 5
0
 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
Esempio n. 6
0
    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
Esempio n. 7
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUIDialog.__init__(self, app, data, storage, payload, instclass)
     self._password = None
Esempio n. 8
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUIDialog.__init__(self, app, data, storage, payload, instclass)
     self._password = None
 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
Esempio n. 11
0
 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
Esempio n. 12
0
    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))
Esempio n. 13
0
 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()