| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/landscape/ |
Upload File : |
}9Rc @ sf d d l m Z d d l m Z d e f d YZ d e f d YZ d e f d YZ d S(
i( t info( t
format_objectt PluginConfigErrorc B s e Z d Z RS( s7 There was an error registering or configuring a plugin.( t __name__t
__module__t __doc__( ( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyR s t PluginRegistryc B s2 e Z d Z d Z d Z d Z d Z RS( s( A central integration point for plugins.c C s g | _ i | _ d S( N( t _pluginst
_plugin_names( t self( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyt __init__
s c C sV t d t | | j j | t | d rE | | j | j <n | j | d S( s Register 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}.
s Registering plugin %s.t plugin_nameN( R R R t appendt hasattrR R t register( R t plugin( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyt add s
c C s | j S( s Get the list of plugins.( R ( R ( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyt get_plugins s c C s | j | S( s Get a particular plugin by name.( R ( R t name( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyt
get_plugin$ s ( R R R R
R R R ( ( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyR
s
t Pluginc B s e Z d Z d Z d Z RS( 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.
i c C sG | | _ t | d rC | j d k rC | j j | j | j n d S( Nt run( t registryR
t run_intervalt Nonet reactort
call_everyR ( R R ( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyR 9 s ( R R R R R ( ( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyR ) s N( t loggingR t
landscape.logR t ExceptionR t objectR R ( ( ( s4 /usr/lib/python2.7/dist-packages/landscape/plugin.pyt <module> s