�
�/Qc @ s: d Z d d l Z d d � Z d � Z d d d � Z d S( s� Pretty-Print an Interface object as structured text (Yum)
This module provides a function, asStructuredText, for rendering an
interface as structured text.
i����Ni c C s. | j � g } | j } d } | j � rL | t t | j � � | � � n g | j D] } | t j j k rV | ^ qV } | r� | t d | | � � | d 7} x: | D]2 } d | j � } | t t | � | | � � q� W| d 8} n t | j
� � } | t d | | � � | d 7} xd | D]\ \ }
} t | d � s#d | j � | j � pYd f } | t t | � | | � � q#q#W| d 8} | t d | | � � | d 7} xm | D]e \ }
} t | d � r�d | j � | j � | j � p�d f } | t t | � | | � � q�q�Wd
j
| � d
S( sj Output structured text format. Note, this will whack any existing
'structured' format of the text. i s This interface extends:s o %ss Attributes:t getSignatureStrings %s -- %ss no documentations Methods:s
%s%s -- %ss
( t getNamet appendt getDoct _justify_and_indentt _trim_doc_stringt __bases__t zopet interfacet Interfacet sortedt namesAndDescriptionst hasattrR t join( t It munget rt outpt levelt baset basest bt itemR t namet desc( ( s= /usr/lib64/python2.7/site-packages/zope/interface/document.pyt asStructuredText sB "
#
#c C s� | j d d � j d � } | j d � g } | r� t g | D]"