Mini Shell

Direktori : /proc/self/root/lib/python3.6/site-packages/blivet/dbus/__pycache__/
Upload File :
Current File : //proc/self/root/lib/python3.6/site-packages/blivet/dbus/__pycache__/manager.cpython-36.opt-1.pyc

3

{)c��@s4ddlZddlmZmZmZGdd�dejj�ZdS)�N�)�BUS_NAME�OBJECT_MANAGER_INTERFACE�OBJECT_MANAGER_PATHcs�eZdZdZ�fdd�Zejjedd�dd��Z	dd	�Z
d
d�Zedd
��Z
dd�Zdd�Zejjedd�dd��Zejjedd�dd��Z�ZS)�
ObjectManagera Class to implement org.freedesktop.DBus.ObjectManager interface.

        Blivet's ObjectManager interface will manage subtrees for objects that
        variously (and with mutual-exclusivity) implement blivet's Device,
        Format, Action interfaces.
    cs>t�|_t�|_t�|_tt|�jtj	j
ttj��t
d�dS)N)Zbus_name�object_path)�list�_objects�dict�_by_id�_by_path�superr�__init__�dbus�serviceZBusNamerZ	SystemBusr)�self)�	__class__��/usr/lib/python3.6/manager.pyr s
zObjectManager.__init__z
a{oa{sa{sv}}})�dbus_interfaceZ
out_signaturecCstdd�|jD��S)Ncss |]}|j|j|jifVqdS)N)r�	interface�
properties)�.0�objrrr�	<genexpr>)sz2ObjectManager.GetManagedObjects.<locals>.<genexpr>)r
r	)rrrr�GetManagedObjects'szObjectManager.GetManagedObjectscCs>|jj|�|j|j=|j|j=|j|j|jg�|j�dS)N)	r	�remover�idrr�InterfacesRemovedrZremove_from_connection)rrrrr�
remove_object+s


zObjectManager.remove_objectcCs>|jj|�||j|j<||j|j<|j|j|j|ji�dS)N)	r	�appendrrrr�InterfacesAddedrr)rrrrr�
add_object2szObjectManager.add_objectcCs|jS)N)r	)rrrr�objects8szObjectManager.objectscCs|jj|�S)N)r�get)rZobj_idrrr�get_object_by_id<szObjectManager.get_object_by_idcCs|jj|�S)N)rr$)rZobj_pathrrr�get_object_by_path?sz ObjectManager.get_object_by_pathz
oa{sa{sv}})rZ	signaturecCsdS)Nr)rrZifaces_props_dictrrrr!BszObjectManager.InterfacesAddedZoascCsdS)Nr)rrZ
interfacesrrrrFszObjectManager.InterfacesRemoved)�__name__�
__module__�__qualname__�__doc__rrr�methodrrrr"�propertyr#r%r&�signalr!r�
__classcell__rr)rrrsr)rZ	constantsrrrrZObjectrrrrr�<module>s