File "dbus_exporter.cpython-36.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/lib/python3.6/site-packages/tuned/exports/__pycache__/dbus_exporter.cpython-36.pyc
File size: 6.87 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
3
<eO @ s d dl mZ ddlZddlZddlZddlZddlZddlZ ddl
jZddlZddl
Z
ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ ydd
lmZ dd ZW n ek
r dd
lmZ Y nX e jj Zdd ZG dd dej Z!dS ) )
interfaces N)ismethod)polkit)GLib)FunctionType)
DBusException)ErrorMessage)getfullargspecc C s t | S )N)r
)func r #/usr/lib/python3.6/dbus_exporter.py
getargspec s r )r c C s t |dd }|d k rn0t |dddkr4d|jj }nd|j|jjf }t|trZ|j }ndjtj |j|}t
|||}|j s| j| d S )NZ_dbus_error_name
__module__ __main__zorg.freedesktop.DBus.Python.%sz!org.freedesktop.DBus.Python.%s.%s)r r )
getattr __class____name__r
isinstancer Zget_dbus_messagejoin tracebackformat_exception_onlyr Zget_no_replyZsend_message)Z
connectionmessageZ exceptionnamecontentsZreplyr r r
_method_reply_error$ s
r c @ s e Zd ZdZdd Zedd Zedd Zedd Zd
d Z dd
Z
dd Zdd Zdd Z
dd Zdd Zdd Zdd ZdS )DBusExportera+
Export method calls through DBus Interface.
We take a method to be exported and create a simple wrapper function
to call it. This is required as we need the original function to be
bound to the original object instance. While the wrapper will be bound
to an object we dynamically construct.
c C s t j tjkrttj_tjjj dd d | _
d | _i | _t
| _|| _|| _|| _|| _d | _d | _t | _tjtj}tj | _tjtj| d S )NT)Zset_as_default)logZgetEffectiveLevelloggingDEBUGr dbusserviceZmainloopZglibZ
DBusGMainLoop_dbus_object_clsZ_dbus_object
_dbus_methodsset_signals _bus_name_interface_name_object_name
_namespace_thread_bus_objectr _polkitsignal getsignalSIGINTr ZMainLoop
_main_loop)selfbus_nameinterface_nameobject_name namespaceZsignal_handlerr r r
__init__B s"