HEX
Server: Apache
System: Linux a16-asgard6.hospedagemuolhost.com.br 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: maoristu4c3dbd03 (1436)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/up2date_client/__pycache__/getMethod.cpython-39.pyc
a

c8h��@s�ddlZddlZddlZddlmZzddlmZWneyJeZYn0Gdd�de	�Z
dd�Zdd	�Ze
d
kr�gd�ZeD]bZede�zeed
�ZWn<e
y�e��dZeded�eeej��f�Yq�0e�q�dS)�N)�
raise_with_tb)�	ClassTypec@seZdZdZdS)�GetMethodExceptionzException classN)�__name__�
__module__�__qualname__�__doc__�r	r	�</usr/lib/python3.9/site-packages/up2date_client/getMethod.pyrsrcCsjtjtj}|tjd}|D]F}t|�s2td��|D]}||vr6td|��q6|d|vrtd��qdS)N�_zEmpty method componentz)Invalid character '%s' in the method namerz6Method names should start with an alphabetic character)�stringZascii_lowercaseZascii_uppercase�digits�lenr)�methodNameCompsZalphaZallowedChars�comp�cr	r	r
�sanitys��rc
	Csp|�d�|�d�}t|�tt|�dd�D]^}d�|d|��}zt|�}Wn6tydYq,Yn"ty�tt	d|��Yn0q�q,t	d|��|}|}tdt|��D]�}||}||kr�t
||�s�t	dd�|d|��|f��t||�}q�t
|d��st	d	d�|d|����t|d�}	||	v�rNt	d
d�|d|��|f��t||�}t|�t
ur�|�}q�|S)N�.r���zCould not import module %szAction %s could not be imported�zClass %s has no attribute %sZ
__rhnexport__zClass %s is not RHN-compliantzClass %s does not export '%s')�splitr�ranger�join�
__import__�ImportError�	Exceptionrr�hasattr�getattr�typer)
Z
methodNameZ	baseClassr�indexZ
modulename�actionsZfIndexZ	classNamerZexportr	r	r
�	getMethod.sH
�
�

�
r!�__main__)za.b.c.d.e.fza.b.c.d.e.foo.hz
a.b.c.d.e.g.hz
a.b.d.d.e.g.hza.b.d.d._e.g.hza.b.d.d.e_.g.hza.b.d.d.e-.g.hza.b.d.d..g.hz----Running method %s: ZActionsrzError getting the method %s: %s�)�osr�sysZrhn.tbr�typesrrrrrrr!r�methods�m�print�method�exc_info�er�map�str�argsr	r	r	r
�<module>
s,
=�