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