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

        DBus.publish_object(PAYLOAD_DEFAULT.object_path, DNFHandlerInterface(self))
Exemplo n.º 27
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BAZ.object_path, BazInterface(self))
     DBus.register_service(BAZ.service_name)
Exemplo n.º 28
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(INTERACTIVE_PARTITIONING.object_path,
                         InteractivePartitioningInterface(self))
Exemplo n.º 29
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(AUTO_PARTITIONING.object_path, AutoPartitioningInterface(self))
Exemplo n.º 30
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SECURITY.object_path, SecurityInterface(self))
     DBus.register_service(SECURITY.service_name)
Exemplo n.º 31
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SNAPSHOT.object_path, SnapshotInterface(self))
Exemplo n.º 32
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(CUSTOM_PARTITIONING.object_path,
                         PartitioningInterface(self))
Exemplo n.º 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
Exemplo n.º 34
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(
         MANUAL_PARTITIONING.object_path,
         ManualPartitioningInterface(self)
     )
Exemplo n.º 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)
Exemplo n.º 36
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BLIVET_PARTITIONING.object_path, BlivetPartitioningInterface(self))
Exemplo n.º 37
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(MANUAL_PARTITIONING.object_path,
                         ManualPartitioningInterface(self))
Exemplo n.º 38
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_INITIALIZATION.object_path,
                         DiskInitializationInterface(self))
Exemplo n.º 39
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_SELECTION.object_path,
                         DiskSelectionInterface(self))
Exemplo n.º 40
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FIREWALL.object_path, FirewallInterface(self))
Exemplo n.º 41
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DISK_SELECTION.object_path, DiskSelectionInterface(self))
Exemplo n.º 42
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DEVICE_TREE.object_path, DeviceTreeInterface(self))
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 45
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(LIVE_IMAGE_HANDLER.object_path, LiveImageHandlerInterface(self))
Exemplo n.º 46
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(FIREWALL.object_path, FirewallInterface(self))
Exemplo n.º 47
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(AUTO_PARTITIONING.object_path,
                         self.for_publication())
Exemplo n.º 48
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DNF_PACKAGES.object_path, PackagesHandlerInterface(self))
Exemplo n.º 49
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(NVDIMM.object_path, NVDIMMInterface(self))
Exemplo n.º 50
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(BOOTLOADER.object_path, BootloaderInterface(self))
Exemplo n.º 51
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SERVICES.object_path, ServicesInterface(self))
     DBus.register_service(SERVICES.service_name)
Exemplo n.º 52
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(NETWORK.object_path, NetworkInterface(self))
     DBus.register_service(NETWORK.service_name)
Exemplo n.º 53
0
    def publish(self):
        """Publish the boss."""
        DBus.publish_object(BOSS.object_path,
                            AnacondaBossInterface(self))

        DBus.register_service(BOSS.service_name)