Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/landscape/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/landscape/plugin.pyc

ó
ÍÿŠTc@sfddlmZddlmZdefd„ƒYZdefd„ƒYZdefd„ƒYZd	S(
iÿÿÿÿ(tinfo(t
format_objecttPluginConfigErrorcBseZdZRS(s7There was an error registering or configuring a plugin.(t__name__t
__module__t__doc__(((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pyRstPluginRegistrycBs2eZdZd„Zd„Zd„Zd„ZRS(s(A central integration point for plugins.cCsg|_i|_dS(N(t_pluginst
_plugin_names(tself((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pyt__init__
s	cCsVtdt|ƒƒ|jj|ƒt|dƒrE||j|j<n|j|ƒdS(sRegister a plugin.

        The plugin's C{register} method will be called with this registry as
        its argument.

        If the plugin has a C{plugin_name} attribute, it will be possible to
        look up the plugin later with L{get_plugin}.
        sRegistering plugin %s.tplugin_nameN(RRRtappendthasattrRRtregister(R	tplugin((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pytadds
	cCs|jS(sGet the list of plugins.(R(R	((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pytget_plugins scCs|j|S(s Get a particular plugin by name.(R(R	tname((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pyt
get_plugin$s(RRRR
RRR(((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pyR
s
			tPlugincBseZdZdZd„ZRS(s˜A convenience for writing plugins.

    This provides a register method which will set up a bunch of
    reactor handlers in the idiomatic way.

    If C{run} is defined on subclasses, it will be called every C{run_interval}
    seconds after being registered.

    @cvar run_interval: The interval, in seconds, to execute the
    C{run} method. If set to C{None}, then C{run} will not be
    scheduled.
    icCsG||_t|dƒrC|jdk	rC|jj|j|jƒndS(Ntrun(tregistryR
trun_intervaltNonetreactort
call_everyR(R	R((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pyR9s	(RRRRR(((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pyR)sN(	tloggingRt
landscape.logRt	ExceptionRtobjectRR(((s4/usr/lib/python2.7/dist-packages/landscape/plugin.pyt<module>s