ó ±2öYc@spddlmZddlZddlZddljZddlmZej j ƒZ defd„ƒYZ dS(iÿÿÿÿ(t PluginLoaderN(tcommandst RepositorycBsDeZd„Zed„ƒZd„Zd„Zd„Zd„ZRS(cCs#t|j|ƒjƒi|_dS(N(tsupert __class__t__init__t _functions(tself((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyR scCs|jS(N(R(R((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyt functionsscCs.d|_tj|_tjjjj|_ dS(Nstuned.profiles.functions( t _namespacetconststFUNCTION_PREFIXt_prefixttunedtprofilesRtbasetFunctiont _interface(R((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyt_set_loader_parameterss  cCs:tjd|ƒ|j|ƒ}|ƒ}||j|<|S(Nscreating function %s(tlogtdebugt load_pluginR(Rt function_namet function_clstfunction_instance((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pytcreates   cCs'||jkr|j|ƒS|j|S(N(RR(RR((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyt load_func!s cCsft||jƒst‚tjd|ƒx6|jjƒD]%\}}||kr9|j|=q9q9WdS(Nsremoving function %s(t isinstanceRtAssertionErrorRRRtitems(Rtfunctiontktv((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pytdelete&s  ( t__name__t __module__RtpropertyRRRRR!(((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyR s    ( ttuned.utils.plugin_loaderRRt tuned.logsR t tuned.constsR ttuned.utils.commandsRtlogstgetRR(((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyts