def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass) r = RocksEnv.RocksEnv() self.clientInstall = r.clientInstall self.defaultCentral = "beta7.rocksclusters.org" if r.central is not None: self.defaultCentral = r.central self.defaultUrl = "http://%s/install/rolls" % self.defaultCentral self.defaultCDPath = "/run/install/repo" self.selectAll = True self.rollSource = NETWORK self.version = '7.0' self.requireDB = True self.requiredRolls = ('core', 'base', 'kernel')
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) LangLocaleHandler.__init__(self, self.payload) self._selected_locales = set() self._l12_module = LOCALIZATION.get_observer() self._l12_module.connect()
def __init__(self, data, storage, payload): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload """ NormalSpoke.__init__(self, data, storage, payload) self.logger = logging.getLogger("anaconda") self.qubes_data = self.data.addons.org_qubes_os_initial_setup self.templatesBox = self.builder.get_object("templatesBox") self.mainBox = self.builder.get_object("mainBox") self.advancedBox = self.builder.get_object("advancedBox") self.lvm_cache = self.init_cache() self.thin_pools = None self.init_qubes_choices()
def __init__(self, *args, **kwargs): StorageChecker.__init__(self) NormalSpoke.__init__(self, *args, **kwargs) self.applyOnSkip = True self._ready = False self.autoPartType = None self.encrypted = False self.passphrase = "" self.selected_disks = self.data.ignoredisk.onlyuse[:] # This list contains all possible disks that can be included in the install. # All types of advanced disks should be set up for us ahead of time, so # there should be no need to modify this list. self.disks = [] if not flags.automatedInstall: # default to using autopart for interactive installs self.data.autopart.autopart = True self.autopart = self.data.autopart.autopart self.autoPartType = None self.clearPartType = CLEARPART_TYPE_NONE self._previous_autopart = False self._last_clicked_overview = None self._cur_clicked_overview = None self._grabObjects()
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._currentIsoFile = None self._ready = False self._error = False self._proxyChange = False self._cdrom = None
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass) self.logger = logging.getLogger("anaconda") self.main_box = self.builder.get_object("mainBox") self.thread_dialog = None self.qubes_user = None self.qubes_gid = None self.default_template = 'fedora-26' self.set_stage("Start-up") self.done = False self.__init_qubes_choices()
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing payload-related information :type payload: pyanaconda.payload.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ self._error = None self._back_already_clicked = False self._storage_playground = None self.label_actions = None self.button_reset = None self.button_undo = None StorageCheckHandler.__init__(self) NormalSpoke.__init__(self, data, storage, payload, instclass)
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass) self.logger = logging.getLogger("anaconda") self.main_box = self.builder.get_object("mainBox") self.thread_dialog = None self.qubes_user = None self.qubes_gid = None self.default_template = 'fedora-25' self.set_stage("Start-up") self.done = False self.__init_qubes_choices()
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self.applyOnSkip = True self._ready = False self.selected_disks = self.data.ignoredisk.onlyuse[:] # This list contains all possible disks that can be included in the install. # All types of advanced disks should be set up for us ahead of time, so # there should be no need to modify this list. self.disks = [] if not flags.automatedInstall: # default to using autopart for interactive installs self.data.autopart.autopart = True self.autopart = self.data.autopart.autopart self.autoPartType = None self.clearPartType = CLEARPART_TYPE_NONE self._previous_autopart = False self._last_clicked_overview = None self._cur_clicked_overview = None # nkwin7 add begin self.hubClass = None self.spokeClass = None
def __init__(self, *args): NormalSpoke.__init__(self, *args) self.applyOnSkip = True self.ancestors = [] self.disks = [] self.selected_disks = []
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass) self.defaultUrl = "http://central-6-2-x86-64.rocksclusters.org/install/rolls" self.defaultCDPath = "/mnt/cdrom" self.selectAll = True self.rollSource = NETWORK self.version = "7.0" self.requireDB = True self.requiredRolls = ("core",)
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._errorMsgs = None self._tx_id = None self._selectFlag = False self.selectedGroups = [] self.excludedGroups = [] self.environment = None self._environmentListBox = self.builder.get_object("environmentListBox") self._addonListBox = self.builder.get_object("addonListBox") # Connect viewport scrolling with listbox focus events environmentViewport = self.builder.get_object("environmentViewport") addonViewport = self.builder.get_object("addonViewport") self._environmentListBox.set_focus_vadjustment(environmentViewport.get_vadjustment()) self._addonListBox.set_focus_vadjustment(addonViewport.get_vadjustment()) # Used to store how the user has interacted with add-ons for the default add-on # selection logic. The dictionary keys are group IDs, and the values are selection # state constants. See refreshAddons for how the values are used. self._addonStates = {} # Used for detecting whether anything's changed in the spoke. self._origAddons = [] self._origEnvironment = None # Register event listeners to update our status on payload events payloadMgr.addListener(payloadMgr.STATE_PACKAGE_MD, self._downloading_package_md) payloadMgr.addListener(payloadMgr.STATE_GROUP_MD, self._downloading_group_md) payloadMgr.addListener(payloadMgr.STATE_FINISHED, self._payload_finished) payloadMgr.addListener(payloadMgr.STATE_ERROR, self._payload_error)
def __init__(self, data, storage, payload): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing payload-related information :type payload: pyanaconda.payload.Payload """ self._error = None self._back_already_clicked = False self._label_actions = None self._button_reset = None self._button_undo = None self._client = None self._blivetgui = None self._partitioning = None self._device_tree = None self._storage_module = STORAGE.get_proxy() StorageCheckHandler.__init__(self) NormalSpoke.__init__(self, data, storage, payload)
def __init__(self, *args, **kwargs): StorageCheckHandler.__init__(self) NormalSpoke.__init__(self, *args, **kwargs) self.applyOnSkip = True self._ready = False self._back_clicked = False self._disks_errors = [] self._last_clicked_overview = None self._cur_clicked_overview = None self._storage_module = STORAGE.get_proxy() self._device_tree = STORAGE.get_proxy(DEVICE_TREE) self._bootloader_module = STORAGE.get_proxy(BOOTLOADER) self._disk_init_module = STORAGE.get_proxy(DISK_INITIALIZATION) self._disk_select_module = STORAGE.get_proxy(DISK_SELECTION) # This list contains all possible disks that can be included in the install. # All types of advanced disks should be set up for us ahead of time, so # there should be no need to modify this list. self._available_disks = [] self._selected_disks = [] self._last_selected_disks = [] # Is the partitioning already configured? self._is_preconfigured = bool(self._storage_module.CreatedPartitioning) # Find a partitioning to use. self._partitioning = find_partitioning() self._last_partitioning_method = self._partitioning.PartitioningMethod # Create a partitioning request for the automatic partitioning. self._partitioning_request = PartitioningRequest() if self._last_partitioning_method == PARTITIONING_METHOD_AUTOMATIC: self._partitioning_request = PartitioningRequest.from_structure( self._partitioning.Request) # Get the UI elements. self._custom_part_radio_button = self.builder.get_object( "customRadioButton") self._blivet_gui_radio_button = self.builder.get_object( "blivetguiRadioButton") self._encrypted_checkbox = self.builder.get_object( "encryptionCheckbox") self._encryption_revealer = self.builder.get_object( "encryption_revealer") self._reclaim_checkbox = self.builder.get_object("reclaimCheckbox") self._reclaim_revealer = self.builder.get_object( "reclaim_checkbox_revealer") self._local_disks_box = self.builder.get_object("local_disks_box") self._specialized_disks_box = self.builder.get_object( "specialized_disks_box") self._local_viewport = self.builder.get_object("localViewport") self._specialized_viewport = self.builder.get_object( "specializedViewport") self._main_viewport = self.builder.get_object("storageViewport") self._main_box = self.builder.get_object("storageMainBox") # Configure the partitioning methods. self._configure_partitioning_methods()
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) LangLocaleHandler.__init__(self) self._selected_locales = set() self._l12_module = LOCALIZATION.get_observer() self._l12_module.connect()
def __init__(self, data, storage, payload): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing payload-related information :type payload: pyanaconda.payload.Payload """ self._error = None self._back_already_clicked = False self._storage_playground = None self.label_actions = None self.button_reset = None self.button_undo = None self._bootloader_observer = STORAGE.get_observer(BOOTLOADER) self._bootloader_observer.connect() StorageCheckHandler.__init__(self) NormalSpoke.__init__(self, data, storage, payload)
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing payload-related information :type payload: pyanaconda.payload.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ self._error = None self._back_already_clicked = False self._storage_playground = None self.label_actions = None self.button_reset = None self.button_undo = None self._bootloader_observer = STORAGE.get_observer(BOOTLOADER) self._bootloader_observer.connect() StorageCheckHandler.__init__(self) NormalSpoke.__init__(self, data, storage, payload, instclass)
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass) r = RocksEnv.RocksEnv() self.clientInstall = r.clientInstall self.defaultCentral ="beta7.rocksclusters.org" if r.central is not None: self.defaultCentral = r.central self.defaultUrl ="http://%s/install/rolls" % self.defaultCentral self.defaultCDPath = "/run/install/repo" self.selectAll = True self.rollSource = NETWORK self.version = '7.0' self.requireDB = True self.requiredRolls = ('core','base','kernel')
def __init__(self, *args): NormalSpoke.__init__(self, *args) GUISpokeInputCheckHandler.__init__(self) self._users_module = USERS.get_proxy() self._services_module = SERVICES.get_proxy() self._refresh_running = False self._manually_locked = False
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._currentIsoFile = None self._ready = False self._error = False self._proxyChange = False self._cdrom = None
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._errorMsgs = None self._tx_id = None self._selectFlag = False self.selectedGroups = [] self.excludedGroups = [] self.environment = None self._environmentListBox = self.builder.get_object("environmentListBox") self._addonListBox = self.builder.get_object("addonListBox") # Used to determine which add-ons to display for each environment. # The dictionary keys are environment IDs. The dictionary values are two-tuples # consisting of lists of add-on group IDs. The first list is the add-ons specific # to the environment, and the second list is the other add-ons possible for the # environment. self._environmentAddons = {} # Used to store how the user has interacted with add-ons for the default add-on # selection logic. The dictionary keys are group IDs, and the values are selection # state constants. See refreshAddons for how the values are used. self._addonStates = {} # Used for detecting whether anything's changed in the spoke. self._origAddons = [] self._origEnvironment = None
def __init__(self, *args, **kwargs): StorageChecker.__init__(self) NormalSpoke.__init__(self, *args, **kwargs) self.applyOnSkip = True self._ready = False self.autoPartType = None self.encrypted = False self.passphrase = "" self.selected_disks = self.data.ignoredisk.onlyuse[:] # This list contains all possible disks that can be included in the install. # All types of advanced disks should be set up for us ahead of time, so # there should be no need to modify this list. self.disks = [] if not flags.automatedInstall: # default to using autopart for interactive installs self.data.autopart.autopart = True self.autopart = self.data.autopart.autopart self.autoPartType = None self.clearPartType = CLEARPART_TYPE_NONE if self.data.zerombr.zerombr and arch.isS390(): # run dasdfmt on any unformatted DASDs automatically threadMgr.add(AnacondaThread(name=constants.THREAD_DASDFMT, target=self.run_dasdfmt)) self._previous_autopart = False self._last_clicked_overview = None self._cur_clicked_overview = None self._grabObjects()
def __init__(self, *args): NormalSpoke.__init__(self, *args) # taking values from the kickstart file? self._kickstarted = flags.flags.automatedInstall self._update_datetime_timer_id = None self._start_updating_timer_id = None
def __init__(self, *args): NormalSpoke.__init__(self, *args) GUISpokeInputCheckHandler.__init__(self) self._users_module = USERS.get_observer() self._users_module.connect() self._services_module = SERVICES.get_observer() self._services_module.connect()
def __init__(self, *args): NormalSpoke.__init__(self, *args) GUISpokeInputCheckHandler.__init__(self) self._users_module = USERS.get_observer() self._users_module.connect() self._services_module = SERVICES.get_observer() self._services_module.connect()
def __init__(self, *args): NormalSpoke.__init__(self, *args) self._remove_last_attempt = False self._confirmed = False self._xkl_wrapper = keyboard.XklWrapper.get_instance() self._upButton = self.builder.get_object("upButton") self._downButton = self.builder.get_object("downButton") self._removeButton = self.builder.get_object("removeLayoutButton") self._previewButton = self.builder.get_object("previewButton")
def __init__(self, data, storage, payload, instclass=None): # Before 78fd1e82 , anaconda passes us instclass, and # NormalSpoke accepts it. After 78fd1e82, it doesn't. So we # handle both cases. if instclass: NormalSpoke.__init__(self, data, storage, payload, instclass) else: NormalSpoke.__init__(self, data, storage, payload) self._done = False self._addon_data = self.data.addons.com_redhat_subscription_manager
def __init__(self, *args): NormalSpoke.__init__(self, *args) self._remove_last_attempt = False self._confirmed = False self._xkl_wrapper = keyboard.XklWrapper.get_instance() self._upButton = self.builder.get_object("upButton") self._downButton = self.builder.get_object("downButton") self._removeButton = self.builder.get_object("removeLayoutButton") self._previewButton = self.builder.get_object("previewButton")
def __init__(self, data, storage, payload): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload """ NormalSpoke.__init__(self, data, storage, payload) # workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1673071 self.title = _(self.title) self._storage = storage self._ready = False # the first status provided self._unitialized_status = _("Not ready") self._ds_checklists = None # the proxy to OSCAP DBus module self._oscap_module = OSCAP.get_proxy() self._policy_data = PolicyData() self._load_policy_data() # used for changing profiles self._rule_data = None # used for storing previously set root password if we need to remove it # due to the chosen policy (so that we can put it back in case of # revert) self.__old_root_pw = None # used to check if the profile was changed or not self._active_profile = "" # prevent multiple simultaneous data fetches self._fetching = False self._fetch_flag_lock = threading.Lock() self._error = None # wait for all Anaconda spokes to initialiuze self._anaconda_spokes_initialized = threading.Event() self.initialization_controller.init_done.connect(self._all_anaconda_spokes_initialized) self.content_bringer = content_discovery.ContentBringer(self._policy_data) self._content_handler = None
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._errorMsgs = None self._tx_id = None self._selectFlag = False self.selectedGroups = [] self.excludedGroups = [] self._environmentListBox = self.builder.get_object( "environmentListBox") self._addonListBox = self.builder.get_object("addonListBox") # Connect viewport scrolling with listbox focus events environmentViewport = self.builder.get_object("environmentViewport") addonViewport = self.builder.get_object("addonViewport") self._environmentListBox.set_focus_vadjustment( environmentViewport.get_vadjustment()) self._addonListBox.set_focus_vadjustment( addonViewport.get_vadjustment()) # Used to store how the user has interacted with add-ons for the default add-on # selection logic. The dictionary keys are group IDs, and the values are selection # state constants. See refreshAddons for how the values are used. self._addonStates = {} # Create a RadioButton that will never be displayed to use as the group for the # environment radio buttons. This way the environment radio buttons can all appear # unselected in the case of modifying data from kickstart. self._firstRadio = Gtk.RadioButton(group=None) # Used for detecting whether anything's changed in the spoke. self._origAddons = [] self._origEnvironment = None # Whether we are using package selections from a kickstart self._kickstarted = flags.automatedInstall and self.data.packages.seen # Whether the payload is in an error state self._error = False # Register event listeners to update our status on payload events payloadMgr.addListener(payloadMgr.STATE_PACKAGE_MD, self._downloading_package_md) payloadMgr.addListener(payloadMgr.STATE_GROUP_MD, self._downloading_group_md) payloadMgr.addListener(payloadMgr.STATE_FINISHED, self._payload_finished) payloadMgr.addListener(payloadMgr.STATE_ERROR, self._payload_error) # Add an invisible radio button so that we can show the environment # list with no radio buttons ticked self._fakeRadio = Gtk.RadioButton(group=None) self._fakeRadio.set_active(True)
def __init__(self, *args): NormalSpoke.__init__(self, *args) # taking values from the kickstart file? self._kickstarted = flags.flags.automatedInstall self._update_datetime_timer = None self._start_updating_timer = None self._shown = False self._tz = None self._timezone_module = TIMEZONE.get_proxy() self._network_module = NETWORK.get_proxy()
def __init__(self, *args): NormalSpoke.__init__(self, *args) # taking values from the kickstart file? self._kickstarted = flags.flags.automatedInstall self._update_datetime_timer = None self._start_updating_timer = None self._shown = False self._tz = None self._timezone_module = TIMEZONE.get_observer() self._timezone_module.connect()
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass) self._addon_data = self.data.addons.org_fedora_oscap self._storage = storage self._ready = False # the first status provided self._unitialized_status = _("Not ready") self._content_handler = None self._content_handling_cls = None self._ds_checklists = None # used for changing profiles, stored as self._addon_data.rule_data when # leaving the spoke self._rule_data = None # used for storing previously set root password if we need to remove it # due to the chosen policy (so that we can put it back in case of # revert) self.__old_root_pw = None # used to check if the profile was changed or not self._active_profile = None # prevent multiple simultaneous data fetches self._fetching = False self._fetch_flag_lock = threading.Lock() self._error = None # wait for all Anaconda spokes to initialiuze self._anaconda_spokes_initialized = threading.Event() self.initialization_controller.init_done.connect( self._all_anaconda_spokes_initialized)
def __init__(self, data, storage, payload): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload """ NormalSpoke.__init__(self, data, storage, payload)
def __init__(self, *args): NormalSpoke.__init__(self, *args) # taking values from the kickstart file? self._kickstarted = flags.flags.automatedInstall self._update_datetime_timer = None self._start_updating_timer = None self._shown = False self._tz = None self._timezone_module = TIMEZONE.get_observer() self._timezone_module.connect() self._network_module = NETWORK.get_observer() self._network_module.connect()
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._errorMsgs = None self._tx_id = None self._selectFlag = False self.selectedGroups = [] self.excludedGroups = [] self._environmentListBox = self.builder.get_object("environmentListBox") self._addonListBox = self.builder.get_object("addonListBox") # Connect viewport scrolling with listbox focus events environmentViewport = self.builder.get_object("environmentViewport") addonViewport = self.builder.get_object("addonViewport") self._environmentListBox.set_focus_vadjustment(environmentViewport.get_vadjustment()) self._addonListBox.set_focus_vadjustment(addonViewport.get_vadjustment()) # Used to store how the user has interacted with add-ons for the default add-on # selection logic. The dictionary keys are group IDs, and the values are selection # state constants. See refreshAddons for how the values are used. self._addonStates = {} # Create a RadioButton that will never be displayed to use as the group for the # environment radio buttons. This way the environment radio buttons can all appear # unselected in the case of modifying data from kickstart. self._firstRadio = Gtk.RadioButton(group=None) # Used for detecting whether anything's changed in the spoke. self._origAddons = [] self._origEnvironment = None # Whether we are using package selections from a kickstart self._kickstarted = flags.automatedInstall and self.data.packages.seen # Whether the payload is in an error state self._error = False # Register event listeners to update our status on payload events payloadMgr.addListener(payloadMgr.STATE_PACKAGE_MD, self._downloading_package_md) payloadMgr.addListener(payloadMgr.STATE_GROUP_MD, self._downloading_group_md) payloadMgr.addListener(payloadMgr.STATE_FINISHED, self._payload_finished) payloadMgr.addListener(payloadMgr.STATE_ERROR, self._payload_error) # Add an invisible radio button so that we can show the environment # list with no radio buttons ticked self._fakeRadio = Gtk.RadioButton(group=None) self._fakeRadio.set_active(True)
def __init__(self, *args): NormalSpoke.__init__(self, *args) self._remove_last_attempt = False self._confirmed = False self._xkl_wrapper = XklWrapper.get_instance() self._add_dialog = None self._ready = False self._upButton = self.builder.get_object("upButton") self._downButton = self.builder.get_object("downButton") self._removeButton = self.builder.get_object("removeLayoutButton") self._previewButton = self.builder.get_object("previewButton") self._l12_module = LOCALIZATION.get_observer() self._l12_module.connect() self._seen = self._l12_module.proxy.KeyboardKickstarted
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._errorMsgs = None self._tx_id = None self._selectFlag = False self.selectedGroups = [] self.excludedGroups = [] self.environment = None # Used for detecting whether anything's changed in the spoke. self._origAddons = [] self._origEnvironment = None # We need to tell the addon view whether something is a separator or not. self.builder.get_object("addonView").set_row_separator_func(self._addon_row_is_separator, None)
def __init__(self, data, storage, payload): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload """ NormalSpoke.__init__(self, data, storage, payload) self._addon_data = self.data.addons.org_fedora_oscap self._storage = storage self._ready = False # the first status provided self._unitialized_status = _("Not ready") self._content_handler = None self._content_handling_cls = None self._ds_checklists = None # used for changing profiles, stored as self._addon_data.rule_data when # leaving the spoke self._rule_data = None # used for storing previously set root password if we need to remove it # due to the chosen policy (so that we can put it back in case of # revert) self.__old_root_pw = None # used to check if the profile was changed or not self._active_profile = None # prevent multiple simultaneous data fetches self._fetching = False self._fetch_flag_lock = threading.Lock() self._error = None # wait for all Anaconda spokes to initialiuze self._anaconda_spokes_initialized = threading.Event() self.initialization_controller.init_done.connect(self._all_anaconda_spokes_initialized)
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass)
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self.applyOnSkip = True self._ready = False self.selected_disks = self.data.ignoredisk.onlyuse[:] # This list contains all possible disks that can be included in the install. # All types of advanced disks should be set up for us ahead of time, so # there should be no need to modify this list. self.disks = [] self._confirmed = True # if set to False, it means the user needs to confirm the current # storage configuration if flags.automatedInstall: # now we have to check if some form of partitioning is specified # in the current kickstart if not any((self.data.partition.seen, self.data.logvol.seen, self.data.volgroup.seen, self.data.raid.seen, self.data.btrfs.seen, self.data.autopart.seen)): # no partitioning specified, so use autopart # but prompt the user to confirm it self.data.autopart.autopart = True self._confirmed = False else: # default to using autopart for interactive installs self.data.autopart.autopart = True self.autopart = self.data.autopart.autopart self.autoPartType = None self.clearPartType = CLEARPART_TYPE_NONE if self.data.zerombr.zerombr and arch.isS390(): # run dasdfmt on any unformatted DASDs automatically threadMgr.add( AnacondaThread(name=constants.THREAD_DASDFMT, target=self.run_dasdfmt)) self._previous_autopart = False self._last_clicked_overview = None self._cur_clicked_overview = None self._grabObjects()
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._errorMsgs = None self._tx_id = None self._selectFlag = False self.selectedGroups = [] self.excludedGroups = [] self.environment = None # Used for detecting whether anything's changed in the spoke. self._origAddons = [] self._origEnvironment = None # We need to tell the addon view whether something is a separator or not. self.builder.get_object("addonView").set_row_separator_func( self._addon_row_is_separator, None)
def __init__(self, data, storage, payload, instclass): NormalSpoke.__init__(self, data, storage, payload, instclass) # Yubikey settings self._yubikeyActive = self.data.addons.se_nauman_crypto.yubikey self._yubikeyVersion = 0 self._yubikeyCheckBox = None # Storage settings # Storage-spoke need to be synced. self._auto_part_observer = STORAGE.get_observer(AUTO_PARTITIONING) self._auto_part_observer.connect() # Passphrase to use # Real phrase is set to self.storage.encryption_passphrase later self.passphrase = self.data.addons.se_nauman_crypto.passphrase # Generate and set passphrase self._updateDiskCrypto()
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass) self.clientInstall = RocksEnv.RocksEnv().clientInstall
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._errorMsgs = None self._tx_id = None self._selectFlag = False self.selectedGroups = [] self.excludedGroups = [] self.environment = None self._environmentListBox = self.builder.get_object("environmentListBox") self._addonListBox = self.builder.get_object("addonListBox") # Used to store how the user has interacted with add-ons for the default add-on # selection logic. The dictionary keys are group IDs, and the values are selection # state constants. See refreshAddons for how the values are used. self._addonStates = {} # Used for detecting whether anything's changed in the spoke. self._origAddons = [] self._origEnvironment = None
def __init__(self, *args, **kwargs): StorageChecker.__init__(self, min_ram=isys.MIN_GUI_RAM) NormalSpoke.__init__(self, *args, **kwargs) self.applyOnSkip = True self._ready = False self.autoPartType = None self.encrypted = False self.passphrase = "" self.selected_disks = self.data.ignoredisk.onlyuse[:] self._last_selected_disks = None self._back_clicked = False self.autopart_missing_passphrase = False self.disks_errors = [] # This list contains all possible disks that can be included in the install. # All types of advanced disks should be set up for us ahead of time, so # there should be no need to modify this list. self.disks = [] if not flags.automatedInstall: # default to using autopart for interactive installs self.data.autopart.autopart = True self.autopart = self.data.autopart.autopart self.autoPartType = None self.clearPartType = CLEARPART_TYPE_NONE if self.data.zerombr.zerombr and arch.isS390(): # run dasdfmt on any unformatted DASDs automatically threadMgr.add( AnacondaThread(name=constants.THREAD_DASDFMT, target=self.run_dasdfmt)) self._previous_autopart = False self._last_clicked_overview = None self._cur_clicked_overview = None self._grabObjects()
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) self._errorMsgs = None self._tx_id = None self._selectFlag = False self.selectedGroups = [] self.excludedGroups = [] self.environment = None self._environmentListBox = self.builder.get_object( "environmentListBox") self._addonListBox = self.builder.get_object("addonListBox") # Used to store how the user has interacted with add-ons for the default add-on # selection logic. The dictionary keys are group IDs, and the values are selection # state constants. See refreshAddons for how the values are used. self._addonStates = {} # Used for detecting whether anything's changed in the spoke. self._origAddons = [] self._origEnvironment = None
def __init__(self, data, storage, payload, instclass): """ :see: pyanaconda.ui.common.Spoke.__init__ :param data: data object passed to every spoke to load/store data from/to it :type data: pykickstart.base.BaseHandler :param storage: object storing storage-related information (disks, partitioning, bootloader, etc.) :type storage: blivet.Blivet :param payload: object storing packaging-related information :type payload: pyanaconda.packaging.Payload :param instclass: distribution-specific information :type instclass: pyanaconda.installclass.BaseInstallClass """ NormalSpoke.__init__(self, data, storage, payload, instclass) self._addon_data = self.data.addons.org_fedora_oscap self._storage = storage self._ready = False # the first status provided self._unitialized_status = _("Not ready") self._content_handler = None self._content_handling_cls = None self._ds_checklists = None # used for changing profiles, stored as self._addon_data.rule_data when # leaving the spoke self._rule_data = None # used to check if the profile was changed or not self._active_profile = None # prevent multiple simultaneous data fetches self._fetching = False self._fetch_flag_lock = threading.Lock()
def __init__(self, *args): NormalSpoke.__init__(self, *args) GUISpokeInputCheckHandler.__init__(self) self._kickstarted = False
def __init__(self, *args): NormalSpoke.__init__(self, *args) GUISpokeInputCheckHandler.__init__(self) self._lock = self.data.rootpw.lock self._kickstarted = False
def __init__(self, *args): NormalSpoke.__init__(self, *args) # taking values from the kickstart file? self._kickstarted = flags.flags.automatedInstall
def __init__(self, *args): NormalSpoke.__init__(self, *args) GUISpokeInputCheckHandler.__init__(self) self._oldweak = None
def __init__(self, data, storage, payload, instclass): NormalSpoke.__init__(self, data, storage, payload, instclass) self._done = False self._addon_data = self.data.addons.com_redhat_subscription_manager
def __init__(self, data, storage, payload, instclass): NormalSpoke.__init__(self, data, storage, payload, instclass) self._reserveMem = 0
def __init__(self, *args): NormalSpoke.__init__(self, *args) self.applyOnSkip = True
def __init__(self, *args, **kwargs): NormalSpoke.__init__(self, *args, **kwargs) LangLocaleHandler.__init__(self) self._selected_locales = set()