AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/landscape/lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/landscape/lib/__pycache__/plugin.cpython-310.pyc
o

���c��@sTddlmZddlZddlmZGdd�de�ZGdd�de�ZGd	d
�d
e�Z	dS)�)�absolute_importN�)�
format_objectc@seZdZdZdS)�PluginConfigErrorz7There was an error registering or configuring a plugin.N)�__name__�
__module__�__qualname__�__doc__�r
r
�6/usr/lib/python3/dist-packages/landscape/lib/plugin.pyrsrc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�PluginRegistryz(A central integration point for plugins.cCsg|_i|_dS)N)�_plugins�
_plugin_names��selfr
r
r�__init__s
zPluginRegistry.__init__cCs@t�dt|��|j�|�t|d�r||j|j<|�|�dS)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�pluginr
r
r�adds
	
zPluginRegistry.addcCs|jS)zGet the list of plugins.)r
rr
r
r�get_plugins"szPluginRegistry.get_pluginscCs
|j|S)z Get a particular plugin by name.)r)r�namer
r
r�
get_plugin&s
zPluginRegistry.get_pluginN)rrrr	rrrrr
r
r
rrsrc@seZdZdZdZdd�ZdS)�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.
    �cCs8||_t|d�r|jdur|j�|j|j�dSdSdS)N�run)�registryr�run_interval�reactor�
call_everyr)rr r
r
rr;s�zPlugin.registerN)rrrr	r!rr
r
r
rr+s
r)
�
__future__rr�formatr�	Exceptionr�objectrrr
r
r
r�<module>s

Anon7 - 2022
AnonSec Team