コード例 #1
0
ファイル: storage.py プロジェクト: rvykydal/anaconda
    def publish(self):
        """Publish the module."""
        for kickstart_module in self._modules:
            kickstart_module.publish()

        DBus.publish_object(STORAGE.object_path, StorageInterface(self))
        DBus.register_service(STORAGE.service_name)
コード例 #2
0
    def publish(self):
        """Publish the module."""
        for kickstart_module in self._modules:
            kickstart_module.publish()

        DBus.publish_object(STORAGE.object_path, StorageInterface(self))
        DBus.register_service(STORAGE.service_name)
コード例 #3
0
    def publish(self):
        """Publish the module."""
        TaskContainer.set_namespace(NETWORK.namespace)
        self._firewall_module.publish()

        DBus.publish_object(NETWORK.object_path, NetworkInterface(self))
        DBus.register_service(NETWORK.service_name)
コード例 #4
0
    def publish_handler(self):
        """Publish the handler."""
        self._packages_handler.publish()

        DBus.publish_object(PAYLOAD_DEFAULT.object_path,
                            DNFHandlerInterface(self))
        return PAYLOAD_DEFAULT.object_path
コード例 #5
0
    def publish(self, object_path):
        """Publish the object on DBus.

        :type object_path: a DBus path of the object
        """
        DBus.publish_object(self, object_path)
        self._object_path = object_path
コード例 #6
0
 def publish(self):
     """Publish the boss."""
     DBus.publish_object(BOSS.object_path,
                         AnacondaBossInterface(self))
     DBus.publish_object(BOSS_INSTALLATION.object_path,
                         InstallationInterface(self._install_manager))
     DBus.register_service(BOSS.service_name)
コード例 #7
0
    def publish(self):
        """Publish the module."""
        # Publish bar.
        DBus.publish_object(BarInterface(self), MODULE_BAR_PATH)
        self.publish_task(BarTask(), MODULE_BAR_PATH)
        DBus.register_service(MODULE_BAR_NAME)

        # Start to watch the timezone module.
        self._timezone_module.cached_properties_changed.connect(
            self._timezone_callback)
        self._timezone_module.connect_once_available()
コード例 #8
0
ファイル: task_interface.py プロジェクト: fsl-jyt/anaconda
    def publish(self, module_path):
        """Publish task on DBus.

        Every new created interface instance will get new number used as a last part of the
        DBus object path to avoid conflict.

        :param module_path: DBus object path to the module.
        :type module_path: str
        """
        self._dbus_path = "{}/Tasks/{}".format(module_path, self._task_number)
        DBus.publish_object(self, self._dbus_path)
コード例 #9
0
ファイル: bar.py プロジェクト: qinshulei/anaconda
    def publish(self):
        """Publish the module."""
        # Publish bar.
        DBus.publish_object(BAR.object_path, BarInterface(self))
        self.publish_task(BAR.namespace, BarTask())
        DBus.register_service(BAR.service_name)

        # Start to watch the timezone module.
        self._timezone_module.cached_properties_changed.connect(
            self._timezone_callback)
        self._timezone_module.connect_once_available()
コード例 #10
0
ファイル: users.py プロジェクト: rvykydal/anaconda
    def _publish_user_instance(self, user_instance):
        """Publish the user instance on DBus.

        :param user_instance: an instance of UserModule
        """
        # Publish the DBus object.
        publishable = UserInterface(user_instance)
        object_path = UserInterface.get_object_path(USERS.namespace)
        DBus.publish_object(object_path, publishable)

        # Update the module.
        self.users[object_path] = user_instance
        self.users_changed.emit()

        log.debug("Published a user at '%s'.", object_path)
        return object_path
コード例 #11
0
    def _publish_user_instance(self, user_instance):
        """Publish the user instance on DBus.

        :param user_instance: an instance of UserModule
        """
        # Publish the DBus object.
        publishable = UserInterface(user_instance)
        object_path = UserInterface.get_object_path(USERS.namespace)
        DBus.publish_object(object_path, publishable)

        # Update the module.
        self.users[object_path] = user_instance
        self.users_changed.emit()

        log.debug("Published a user at '%s'.", object_path)
        return object_path
コード例 #12
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FooInterface(self), MODULE_FOO_PATH)
     self.publish_task(FooTask(), MODULE_FOO_PATH)
     DBus.register_service(MODULE_FOO_NAME)
コード例 #13
0
ファイル: localization.py プロジェクト: kalev/anaconda-1
 def publish(self):
     """Publish the module."""
     DBus.publish_object(LOCALIZATION.object_path, LocalizationInterface(self))
     DBus.register_service(LOCALIZATION.service_name)
コード例 #14
0
 def publish(self):
     """Publish the boss."""
     DBus.publish_object(AnacondaBossInterface(self), DBUS_BOSS_PATH)
     DBus.publish_object(InstallationInterface(self._install_manager),
                         DBUS_BOSS_INSTALLATION_PATH)
     DBus.register_service(DBUS_BOSS_NAME)
コード例 #15
0
ファイル: payload.py プロジェクト: kalev/anaconda-1
 def publish(self):
     """Publish the module."""
     DBus.publish_object(PAYLOAD.object_path, PayloadInterface(self))
     DBus.register_service(PAYLOAD.service_name)
コード例 #16
0
ファイル: nvdimm.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(NVDIMM.object_path, NVDIMMInterface(self))
コード例 #17
0
ファイル: baz.py プロジェクト: fsl-jyt/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(self, ADDON_BAZ_PATH)
     DBus.register_service(ADDON_BAZ_NAME)
コード例 #18
0
ファイル: payload.py プロジェクト: zhangsju/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(PAYLOAD.object_path, PayloadInterface(self))
     DBus.register_service(PAYLOAD.service_name)
コード例 #19
0
ファイル: snapshot.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SNAPSHOT.object_path, SnapshotInterface(self))
コード例 #20
0
ファイル: dasd.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DASD.object_path, DASDInterface(self))
コード例 #21
0
ファイル: zfcp.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(ZFCP.object_path, ZFCPInterface(self))
コード例 #22
0
ファイル: bootloader.py プロジェクト: zhangsju/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BOOTLOADER.object_path, BootloaderInterface(self))
コード例 #23
0
ファイル: timezone.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(TIMEZONE.object_path, TimezoneInterface(self))
     DBus.register_service(TIMEZONE.service_name)
コード例 #24
0
ファイル: fcoe.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FCOE.object_path, FCOEInterface(self))
コード例 #25
0
ファイル: users.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(USERS.object_path, UsersInterface(self))
     DBus.register_service(USERS.service_name)
コード例 #26
0
ファイル: dnf.py プロジェクト: rvykydal/anaconda
    def publish(self):
        """Publish the module."""
        self._packages_handler.publish()

        DBus.publish_object(PAYLOAD_DEFAULT.object_path, DNFHandlerInterface(self))
コード例 #27
0
ファイル: baz.py プロジェクト: zhangsju/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BAZ.object_path, BazInterface(self))
     DBus.register_service(BAZ.service_name)
コード例 #28
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(INTERACTIVE_PARTITIONING.object_path,
                         InteractivePartitioningInterface(self))
コード例 #29
0
ファイル: automatic.py プロジェクト: zhangsju/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(AUTO_PARTITIONING.object_path, AutoPartitioningInterface(self))
コード例 #30
0
ファイル: security.py プロジェクト: zhangsju/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SECURITY.object_path, SecurityInterface(self))
     DBus.register_service(SECURITY.service_name)
コード例 #31
0
ファイル: snapshot.py プロジェクト: ptalbert/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SNAPSHOT.object_path, SnapshotInterface(self))
コード例 #32
0
ファイル: custom.py プロジェクト: ptalbert/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(CUSTOM_PARTITIONING.object_path,
                         PartitioningInterface(self))
コード例 #33
0
ファイル: live_image.py プロジェクト: tuan-hoang1/anaconda
 def publish_handler(self):
     """Publish the handler."""
     DBus.publish_object(LIVE_IMAGE_HANDLER.object_path, LiveImageHandlerInterface(self))
     return LIVE_IMAGE_HANDLER.object_path
コード例 #34
0
ファイル: manual.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(
         MANUAL_PARTITIONING.object_path,
         ManualPartitioningInterface(self)
     )
コード例 #35
0
ファイル: network.py プロジェクト: zhangsju/anaconda
    def publish(self):
        """Publish the module."""
        self._firewall_module.publish()

        DBus.publish_object(NETWORK.object_path, NetworkInterface(self))
        DBus.register_service(NETWORK.service_name)
コード例 #36
0
ファイル: blivet.py プロジェクト: tuan-hoang1/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BLIVET_PARTITIONING.object_path, BlivetPartitioningInterface(self))
コード例 #37
0
ファイル: manual.py プロジェクト: tuan-hoang1/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(MANUAL_PARTITIONING.object_path,
                         ManualPartitioningInterface(self))
コード例 #38
0
ファイル: initialization.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_INITIALIZATION.object_path,
                         DiskInitializationInterface(self))
コード例 #39
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_SELECTION.object_path,
                         DiskSelectionInterface(self))
コード例 #40
0
ファイル: firewall.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FIREWALL.object_path, FirewallInterface(self))
コード例 #41
0
ファイル: selection.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_SELECTION.object_path, DiskSelectionInterface(self))
コード例 #42
0
ファイル: devicetree.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DEVICE_TREE.object_path, DeviceTreeInterface(self))
コード例 #43
0
 def publish(self):
     """Publish the module."""
     TaskContainer.set_namespace(SERVICES.namespace)
     DBus.publish_object(SERVICES.object_path, ServicesInterface(self))
     DBus.register_service(SERVICES.service_name)
コード例 #44
0
ファイル: boss.py プロジェクト: m4d3bug/anaconda
    def publish(self):
        """Publish the boss."""
        TaskContainer.set_namespace(BOSS.namespace)
        DBus.publish_object(BOSS.object_path, AnacondaBossInterface(self))

        DBus.register_service(BOSS.service_name)
コード例 #45
0
ファイル: live_image.py プロジェクト: gpchelkin/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(LIVE_IMAGE_HANDLER.object_path, LiveImageHandlerInterface(self))
コード例 #46
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FIREWALL.object_path, FirewallInterface(self))
コード例 #47
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(AUTO_PARTITIONING.object_path,
                         self.for_publication())
コード例 #48
0
ファイル: packages.py プロジェクト: rvykydal/anaconda
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DNF_PACKAGES.object_path, PackagesHandlerInterface(self))
コード例 #49
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(NVDIMM.object_path, NVDIMMInterface(self))
コード例 #50
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BOOTLOADER.object_path, BootloaderInterface(self))
コード例 #51
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SERVICES.object_path, ServicesInterface(self))
     DBus.register_service(SERVICES.service_name)
コード例 #52
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(NETWORK.object_path, NetworkInterface(self))
     DBus.register_service(NETWORK.service_name)
コード例 #53
0
ファイル: boss.py プロジェクト: rvykydal/anaconda
    def publish(self):
        """Publish the boss."""
        DBus.publish_object(BOSS.object_path,
                            AnacondaBossInterface(self))

        DBus.register_service(BOSS.service_name)