403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/landscape/lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/landscape/lib/__pycache__/plugin.cpython-312.pyc
�

�~�e���V�ddlZddlmZGd�de�ZGd�d�ZGd�d	�Zy)
�N�)�
format_objectc��eZdZdZy)�PluginConfigErrorz7There was an error registering or configuring a plugin.N)�__name__�
__module__�__qualname__�__doc__���6/usr/lib/python3/dist-packages/landscape/lib/plugin.pyrrs��Arrc�(�eZdZdZd�Zd�Zd�Zd�Zy)�PluginRegistryz(A central integration point for plugins.c� �g|_i|_y)N)�_plugins�
_plugin_names��selfs r
�__init__zPluginRegistry.__init__
s����
���rc���tjdt|��|jj	|�t|d�r||j|j<|j|�y)aRegister 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}.
        zRegistering plugin %s.�plugin_nameN)	�logging�inforr�append�hasattrrr�register)r�plugins  r
�addzPluginRegistry.addsV��	���-�}�V�/D�E��
�
���V�$��6�=�)�5;�D���v�1�1�2�����rc��|jS)zGet the list of plugins.)rrs r
�get_pluginszPluginRegistry.get_plugins s���}�}�rc� �|j|S)z Get a particular plugin by name.)r)r�names  r
�
get_pluginzPluginRegistry.get_plugin$s���!�!�$�'�'rN)rrr	r
rrr r#rrr
rr
s��2� �
��(rrc��eZdZdZdZd�Zy)�Plugina�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.
    �c��||_t|d�r>|j�1|jj	|j|j
�yyy)N�run)�registryr�run_interval�reactor�
call_everyr()rr)s  r
rzPlugin.register9sG�� ��
��4���D�$5�$5�$A����'�'��(9�(9�4�8�8�D�%B�rN)rrr	r
r*rrrr
r%r%)s����L�Err%)r�formatr�	Exceptionrrr%rrr
�<module>r/s/���!�B�	�B�(�(�>E�Er

Youez - 2016 - github.com/yon3zu
LinuXploit