Ejemplo n.º 1
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self.hostname_dialog = OneShotEditTUIDialog(app, data, storage, payload, instclass)
     self.hostname_dialog.value = self.data.network.hostname
     self.supported_devices = []
     self.errors = []
     self._apply = False
Ejemplo n.º 2
0
 def __init__(self, app, data, storage, payload, instclass, ndata):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self.args = ndata
     if self.args.bootProto == "dhcp":
         self.args.ip = "dhcp"
     if self.args.noipv6:
         self.args.ipv6 = "ignore"
     self.args._apply = False
Ejemplo n.º 3
0
 def __init__(self, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, data, storage, payload, instclass)
     self.title = N_("Network configuration")
     self._container = None
     self.hostname_dialog = OneShotEditTUIDialog(data, storage, payload, instclass)
     self.hostname_dialog.value = self.data.network.hostname
     self.supported_devices = []
     self.errors = []
     self._apply = False
Ejemplo n.º 4
0
 def __init__(self, data, storage, payload, instclass, ndata):
     EditTUISpoke.__init__(self, data, storage, payload, instclass)
     self.title = N_("Device configuration")
     self.args = ndata
     if self.args.bootProto == "dhcp":
         self.args.ip = "dhcp"
     if self.args.noipv6:
         self.args.ipv6 = "ignore"
     self.args._apply = False
Ejemplo n.º 5
0
 def __init__(self, app, data, storage, payload, instclass, ndata):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self.args = ndata
     if self.args.bootProto == "dhcp":
         self.args.ip = "dhcp"
     if self.args.noipv6:
         self.args.ipv6 = "ignore"
     self.args._apply = False
     self.dialog.wrong_input_message = _("Bad format of the IP address")
Ejemplo n.º 6
0
    def __init__(self, app, data, storage, payload, instclass, selection, error):
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
        SourceSwitchHandler.__init__(self)
        self.selection = selection
        self._error = error

        nfs = self.data.method
        self.args = DataHolder(server="", opts=nfs.opts or "")
        if nfs.method == "nfs" and nfs.server and nfs.dir:
            self.args.server = "%s:%s" % (nfs.server, nfs.dir)
Ejemplo n.º 7
0
    def __init__(self, app, data, storage, payload, instclass):
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass)

        self.args = self.data.addons.com_redhat_kdump

        # Read the config file into data.content so that it will be written
        # to the system even though it is not editable
        try:
            with open(CONFIG_FILE, "r") as fobj:
                self.data.addons.com_redhat_kdump.content = fobj.read()
        except IOError:
            pass
Ejemplo n.º 8
0
    def __init__(self, app, data, storage, payload, instclass):
        FirstbootSpokeMixIn.__init__(self)
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass)

        if self.data.user.userList:
            self.args = self.data.user.userList[0]
            self.args._create = True
        else:
            self.args = self.data.UserData()
            self.args._create = False

        self.args._use_password = self.args.isCrypted or self.args.password
Ejemplo n.º 9
0
    def __init__(self, app, data, storage, payload, instclass):
        FirstbootSpokeMixIn.__init__(self)
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass)

        if self.data.user.userList:
            self.args = self.data.user.userList[0]
            self.args._create = True
        else:
            self.args = self.data.UserData()
            self.args._create = False

        self.args._use_password = self.args.isCrypted or self.args.password

        # Keep the password separate from the kickstart data until apply()
        # so that all of the properties are set at once
        self.args._password = ""
Ejemplo n.º 10
0
    def __init__(self, app, data, storage, payload, instclass):
        FirstbootSpokeMixIn.__init__(self)
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass)

        if self.data.user.userList:
            self.args = self.data.user.userList[0]
            self.args._create = True
        else:
            self.args = self.data.UserData()
            self.args._create = False

        self.args._use_password = self.args.isCrypted or self.args.password

        # Keep the password separate from the kickstart data until apply()
        # so that all of the properties are set at once
        self.args._password = ""
Ejemplo n.º 11
0
    def __init__(self, app, data, storage, payload, instclass):
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass, "user")
        self.dialog.wrong_input_message = _("You have provided an invalid user name.\n"
                                            "Tip: Keep your user name shorter than 32 "
                                            "characters and do not use spaces.\n")

        if self.data.user.userList:
            self.args = self.data.user.userList[0]
            self.args._create = True
        else:
            self.args = self.data.UserData()
            self.args._create = False

        self.args._use_password = self.args.isCrypted or self.args.password

        # Keep the password separate from the kickstart data until apply()
        # so that all of the properties are set at once
        self.args._password = ""

        self.errors = []
Ejemplo n.º 12
0
    def __init__(self, app, data, storage, payload, instclass):
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass,
                              "user")
        self.dialog.wrong_input_message = _(
            "You have provided an invalid user name.\n"
            "Tip: Keep your user name shorter than 32 "
            "characters and do not use spaces.\n")

        if self.data.user.userList:
            self.args = self.data.user.userList[0]
            self.args._create = True
        else:
            self.args = self.data.UserData()
            self.args._create = False

        self.args._use_password = self.args.isCrypted or self.args.password

        # Keep the password separate from the kickstart data until apply()
        # so that all of the properties are set at once
        self.args._password = ""

        self.errors = []
Ejemplo n.º 13
0
	def __init__(self, app, data, storage, payload, instclass):
		EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
		self.args = _EditData()
Ejemplo n.º 14
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self.args = self.data.addons.com_redhat_kdump
Ejemplo n.º 15
0
 def __init__(self, app, data, storage, payload, instclass, selection, errors):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self.selection = selection
     self.args = self.data.method
     self.errors = errors
Ejemplo n.º 16
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self._ready = False
     self.errors = []
     self._cdrom = None
Ejemplo n.º 17
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self.args = self.data.addons.com_redhat_kdump
Ejemplo n.º 18
0
    def __init__(self, app, data, storage, payload, instclass):
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass)

        # just populate the self.args attribute to have a store for data
        # typically self.data or a subtree of self.data is used as self.args
        self.args = _EditData()
Ejemplo n.º 19
0
 def __init__(self, app, data, storage, payload, instclass, selection,
              errors):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self.selection = selection
     self.args = self.data.method
     self.errors = errors
Ejemplo n.º 20
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self._ready = False
     self.errors = []
     self._cdrom = None
Ejemplo n.º 21
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     SourceSwitchHandler.__init__(self)
     self._ready = False
     self._error = False
     self._cdrom = None
Ejemplo n.º 22
0
 def __init__(self, app, data, storage, payload, instclass, selection):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     SourceSwitchHandler.__init__(self)
     self.selection = selection
     self.args = self.data.method
    def __init__(self, app, data, storage, payload, instclass):
        EditTUISpoke.__init__(self, app, data, storage, payload, instclass)

        # just populate the self.args attribute to have a store for data
        # typically self.data or a subtree of self.data is used as self.args
        self.args = _EditData()
Ejemplo n.º 24
0
 def __init__(self, app, data, storage, payload, instclass, selection):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     SourceSwitchHandler.__init__(self)
     self.selection = selection
     self.args = self.data.method
Ejemplo n.º 25
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     SourceSwitchHandler.__init__(self)
     self._ready = False
     self._error = False
     self._cdrom = None
Ejemplo n.º 26
0
 def __init__(self, data, storage, payload, instclass, protocol):
     EditTUISpoke.__init__(self, data, storage, payload, instclass)
     SourceSwitchHandler.__init__(self)
     self.title = N_("Specify Repo Options")
     self.protocol = protocol
     self.args = self.data.method
Ejemplo n.º 27
0
 def __init__(self, app, data, storage, payload, instclass):
     EditTUISpoke.__init__(self, app, data, storage, payload, instclass)
     self.hostname_dialog = OneShotEditTUIDialog(app, data, storage, payload, instclass)
     self.hostname_dialog.value = self.data.network.hostname
     self.supported_devices = []
     self.errors = []