Ejemplo 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()
Ejemplo 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()
Ejemplo 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
Ejemplo n.º 4
0
 def refresh(self, args=None):
     EditTUIDialog.refresh(self, args)
     return True
Ejemplo 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
Ejemplo 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
Ejemplo n.º 7
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUIDialog.__init__(self, app, data, storage, payload, instclass)
     self._password = None
Ejemplo 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
Ejemplo 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
Ejemplo 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))
Ejemplo 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()