509318396
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
3
UˆŠZÎ  ã               @   sü   d dl Z d dlZd dlZd dlmZ yd dlmZ W n ek
rL   eZY nX G dd„ de	ƒZ
dd„ Zdd	„ Zed
krøddddddddgZxleD ]dZede ƒ yeedƒZW n> e
k
rì   ejƒ d Zededjeeejƒƒf ƒ Y q�X eƒ  q�W dS )é    N)Úraise_with_tb)Ú	ClassTypec               @   s   e Zd ZdZdS )ÚGetMethodExceptionzException classN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r	   r	   ú/usr/lib/python3.6/getMethod.pyr      s   r   c             C   sr   t jt j }|t j d }xR| D ]J}t|ƒs4tdƒ‚x |D ]}||kr:td| ƒ‚q:W |d |kr tdƒ‚q W d S )NÚ_zEmpty method componentz)Invalid character '%s' in the method namer   z6Method names should start with an alphabetic character)ÚstringZascii_lowercaseZascii_uppercaseZdigitsÚlenr   )ÚmethodNameCompsZalphaZallowedCharsÚcompÚcr	   r	   r
   Úsanity   s    

r   c       
      C   sz  |j dƒ| j dƒ }t|ƒ x~tt|ƒdd
ƒD ]^}dj|d |… ƒ}yt|ƒ}W n8 tk
rf   w.Y n$ tk
rˆ   tt	d| ƒƒ Y nX P q.W t	d|  ƒ‚|}|}xÐtdt|ƒƒD ]¾}|| }||k � rþt
||ƒsòt	ddj|d |… ƒ|f ƒ‚t||ƒ}q´t
|dƒ�s$t	ddj|d |… ƒ ƒ‚t|dƒ}	||	k�rVt	d	dj|d |… ƒ|f ƒ‚t||ƒ}t|ƒtkr´|ƒ }q´W |S )NÚ.r   é   zCould not import module %szAction %s could not be importedzClass %s has no attribute %sZ__rhnexport__zClass %s is not RHN-compliantzClass %s does not export '%s'éÿÿÿÿ)Úsplitr   Úranger   ÚjoinÚ
__import__ÚImportErrorÚ	Exceptionr   r   ÚhasattrÚgetattrÚtyper   )
Z
methodNameZ	baseClassr   ÚindexZ
modulenameZactionsZfIndexZ	classNamer   Zexportr	   r	   r
   Ú	getMethod.   sB    






r   Ú__main__za.b.c.d.e.fza.b.c.d.e.foo.hza.b.c.d.e.g.hza.b.d.d.e.g.hza.b.d.d._e.g.hza.b.d.d.e_.g.hza.b.d.d.e-.g.hza.b.d.d..g.hz----Running method %s: ZActionsr   zError getting the method %s: %sÚ )Úosr   ÚsysZrhn.tbr   Útypesr   r   r   r   r   r   r   r   ÚmethodsÚmÚprintÚmethodÚexc_infoÚer   ÚmapÚstrÚargsr	   r	   r	   r
   Ú<module>
   s8   
=
