当前位置: 首页>>代码示例>>Python>>正文


Python STORAGE.get_observer方法代码示例

本文整理汇总了Python中pyanaconda.modules.common.constants.services.STORAGE.get_observer方法的典型用法代码示例。如果您正苦于以下问题:Python STORAGE.get_observer方法的具体用法?Python STORAGE.get_observer怎么用?Python STORAGE.get_observer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyanaconda.modules.common.constants.services.STORAGE的用法示例。


在下文中一共展示了STORAGE.get_observer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from pyanaconda.modules.common.constants.services import STORAGE [as 别名]
# 或者: from pyanaconda.modules.common.constants.services.STORAGE import get_observer [as 别名]
    def __init__(self, data, storage, payload):
        super().__init__(data, storage, payload)
        self.title = N_("Installation Destination")
        self._container = None

        self._bootloader_observer = STORAGE.get_observer(BOOTLOADER)
        self._bootloader_observer.connect()

        self._disk_init_observer = STORAGE.get_observer(DISK_INITIALIZATION)
        self._disk_init_observer.connect()

        self._disk_select_observer = STORAGE.get_observer(DISK_SELECTION)
        self._disk_select_observer.connect()

        self._auto_part_observer = STORAGE.get_observer(AUTO_PARTITIONING)
        self._auto_part_observer.connect()

        self._selected_disks = self._disk_select_observer.proxy.SelectedDisks

        # This list gets set up once in initialize and should not be modified
        # except perhaps to add advanced devices. It will remain the full list
        # of disks that can be included in the install.
        self._available_disks = []

        if not flags.automatedInstall:
            # default to using autopart for interactive installs
            self._auto_part_observer.proxy.SetEnabled(True)

        self._ready = False
        self._select_all = False
        self._auto_part_enabled = None

        self.errors = []
        self.warnings = []
开发者ID:rvykydal,项目名称:anaconda,代码行数:36,代码来源:storage.py

示例2: __init__

# 需要导入模块: from pyanaconda.modules.common.constants.services import STORAGE [as 别名]
# 或者: from pyanaconda.modules.common.constants.services.STORAGE import get_observer [as 别名]
    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)
开发者ID:rvykydal,项目名称:anaconda,代码行数:27,代码来源:blivet_gui.py


注:本文中的pyanaconda.modules.common.constants.services.STORAGE.get_observer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。