3 execr) formatrrr__func__r9compilelenr$r co_constslocals)r2methodwrappersourcecoder r r r _prepare_for_dbusoszDBusExporter._prepare_for_dbuscsjtstdj}|jkr(tdfdd}j|}tjjj||dd|}|j|<dS)Nz#Only bound methods can be exported.z*Method with this name is already exported.cs jdj}|d }tjd||fjj||}|}|dkrXtjd||fn|dkrttjd||fn|dkrtjd||ft|dd d g}nZ|dkrtjd ||ft|ddd g}n(tj d ||ft|ddd g}||S)N.rz?checking authorization for action '%s' requested by caller '%s'zJaction '%s' requested by caller '%s' was successfully authorized by polkitzepolkit error, but action '%s' requested by caller '%s' was successfully authorized by fallback methodrzLaction '%s' requested by caller '%s' wasn't authorized, ignoring the requestrzppolkit error and action '%s' requested by caller '%s' wasn't authorized by fallback method, ignoring the requestzvpolkit error and unable to use fallback method to authorize action '%s' requested by caller '%s', ignoring the requestrHrHrHrH) r*rrdebugr-Zcheck_authorizationwarninfolisterror)ownerr9kwargsZ action_idcallerretZ args_copy)rAr2r r rBs$z$DBusExporter.export..wrapperrP)Zsender_keyword) r Exceptionrr$rEr!r"rAr()r2rAZ in_signature out_signature method_namerBr )rAr2r export}s  zDBusExporter.exportcsntstdj}||jkr(tdfdd}|j|}tjj|j||}||j|<|j j |dS)Nz#Only bound methods can be exported.z*Method with this name is already exported.cs ||S)Nr )rNr9rO)rAr r rBsz$DBusExporter.signal..wrapper) rrRrr$rEr!r"r.r(r&add)r2rArSrTrBr )rAr r.s    zDBusExporter.signalc Osfd}||jks|jdkrd}yt|j|}Wntk rDd}YnX|rXtd|n |||dS)NFTzSignal '%s' doesn't exist.)r&r,rAttributeErrorrR)r2r.r9rOerrrAr r r send_signals zDBusExporter.send_signalcCs<|jdk rtddt|}t|tjjf|j}||_dS)Nz%The exporter class was already build.zDBusExporter_%d)r#rRidtyper!r"ZObjectr$)r2Z unique_nameclsr r r _construct_dbus_object_classs   z)DBusExporter._construct_dbus_object_classcCsn|jr dS|jdkr|j|jtj}tjj|j|}|j||j ||_ t j |j d|_|jjdS)N)target)r8r#r]stopr!Z SystemBusr"ZBusNamer'r)r, threadingZThread _thread_coder+start)r2Zbusr3r r r rbs zDBusExporter.startcCs2|jdk r.|jjr.|jj|jjd|_dS)N)r+Zis_aliver1quitr)r2r r r r_s  zDBusExporter.stopcCs|jj|`d|_dS)N)r1Zrunr,)r2r r r ras zDBusExporter._thread_codeN)rr __qualname____doc__r7propertyr3r4r5r8rErUr.rYr]rbr_rar r r r r8s   "   r)"rrZ dbus.servicer!Zdbus.mainloop.glibZdbus.exceptionsr`r.Z tuned.logsZtunedZ tuned.constsZconstsrrinspectrZtuned.utils.polkitrZ gi.repositoryrtypesrrZ dbus.lowlevelr r r ImportErrorZlogsgetrrZExporterInterfacerr r r r s.