ó æ ”\c@stddlmZddlmZddlZddljZddlm Z ej j ƒZ defd„ƒYZ dS(iÿÿÿÿ(t PluginLoaderi(tbaseN(tcommandst RepositorycBsDeZd„Zed„ƒZd„Zd„Zd„Zd„ZRS(cCs tt|ƒjƒi|_dS(N(tsuperRt__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_prefixttunedtprofilesRRtFunctiont _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 cCslt||jƒst‚tjd|ƒx<t|jjƒƒD]%\}}||kr?|j|=q?q?WdS(Nsremoving function %s(t isinstanceRtAssertionErrorRRtlistRtitems(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_loaderRtRt tuned.logsR t tuned.constsR ttuned.utils.commandsRtlogstgetRR(((sG/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyts