Beispiel #1
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)
Beispiel #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)
Beispiel #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)
Beispiel #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
Beispiel #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
Beispiel #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)
Beispiel #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()
Beispiel #8
0
    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)
Beispiel #9
0
    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()
Beispiel #10
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
Beispiel #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
Beispiel #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)
Beispiel #13
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(LOCALIZATION.object_path, LocalizationInterface(self))
     DBus.register_service(LOCALIZATION.service_name)
Beispiel #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)
Beispiel #15
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(PAYLOAD.object_path, PayloadInterface(self))
     DBus.register_service(PAYLOAD.service_name)
Beispiel #16
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(NVDIMM.object_path, NVDIMMInterface(self))
Beispiel #17
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(self, ADDON_BAZ_PATH)
     DBus.register_service(ADDON_BAZ_NAME)
Beispiel #18
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(PAYLOAD.object_path, PayloadInterface(self))
     DBus.register_service(PAYLOAD.service_name)
Beispiel #19
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SNAPSHOT.object_path, SnapshotInterface(self))
Beispiel #20
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DASD.object_path, DASDInterface(self))
Beispiel #21
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(ZFCP.object_path, ZFCPInterface(self))
Beispiel #22
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BOOTLOADER.object_path, BootloaderInterface(self))
Beispiel #23
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(TIMEZONE.object_path, TimezoneInterface(self))
     DBus.register_service(TIMEZONE.service_name)
Beispiel #24
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FCOE.object_path, FCOEInterface(self))
Beispiel #25
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(USERS.object_path, UsersInterface(self))
     DBus.register_service(USERS.service_name)
Beispiel #26
0
    def publish(self):
        """Publish the module."""
        self._packages_handler.publish()

        DBus.publish_object(PAYLOAD_DEFAULT.object_path, DNFHandlerInterface(self))
Beispiel #27
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BAZ.object_path, BazInterface(self))
     DBus.register_service(BAZ.service_name)
Beispiel #28
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(INTERACTIVE_PARTITIONING.object_path,
                         InteractivePartitioningInterface(self))
Beispiel #29
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(AUTO_PARTITIONING.object_path, AutoPartitioningInterface(self))
Beispiel #30
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SECURITY.object_path, SecurityInterface(self))
     DBus.register_service(SECURITY.service_name)
Beispiel #31
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SNAPSHOT.object_path, SnapshotInterface(self))
Beispiel #32
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(CUSTOM_PARTITIONING.object_path,
                         PartitioningInterface(self))
Beispiel #33
0
 def publish_handler(self):
     """Publish the handler."""
     DBus.publish_object(LIVE_IMAGE_HANDLER.object_path, LiveImageHandlerInterface(self))
     return LIVE_IMAGE_HANDLER.object_path
Beispiel #34
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(
         MANUAL_PARTITIONING.object_path,
         ManualPartitioningInterface(self)
     )
Beispiel #35
0
    def publish(self):
        """Publish the module."""
        self._firewall_module.publish()

        DBus.publish_object(NETWORK.object_path, NetworkInterface(self))
        DBus.register_service(NETWORK.service_name)
Beispiel #36
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BLIVET_PARTITIONING.object_path, BlivetPartitioningInterface(self))
Beispiel #37
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(MANUAL_PARTITIONING.object_path,
                         ManualPartitioningInterface(self))
Beispiel #38
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_INITIALIZATION.object_path,
                         DiskInitializationInterface(self))
Beispiel #39
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_SELECTION.object_path,
                         DiskSelectionInterface(self))
Beispiel #40
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FIREWALL.object_path, FirewallInterface(self))
Beispiel #41
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_SELECTION.object_path, DiskSelectionInterface(self))
Beispiel #42
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DEVICE_TREE.object_path, DeviceTreeInterface(self))
Beispiel #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)
Beispiel #44
0
    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)
Beispiel #45
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(LIVE_IMAGE_HANDLER.object_path, LiveImageHandlerInterface(self))
Beispiel #46
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FIREWALL.object_path, FirewallInterface(self))
Beispiel #47
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(AUTO_PARTITIONING.object_path,
                         self.for_publication())
Beispiel #48
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DNF_PACKAGES.object_path, PackagesHandlerInterface(self))
Beispiel #49
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(NVDIMM.object_path, NVDIMMInterface(self))
Beispiel #50
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BOOTLOADER.object_path, BootloaderInterface(self))
Beispiel #51
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SERVICES.object_path, ServicesInterface(self))
     DBus.register_service(SERVICES.service_name)
Beispiel #52
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(NETWORK.object_path, NetworkInterface(self))
     DBus.register_service(NETWORK.service_name)
Beispiel #53
0
    def publish(self):
        """Publish the boss."""
        DBus.publish_object(BOSS.object_path,
                            AnacondaBossInterface(self))

        DBus.register_service(BOSS.service_name)