Current Path : /usr/lib/python2.7/dist-packages/zope/interface/ |
Current File : //usr/lib/python2.7/dist-packages/zope/interface/document.pyc |
Kc @ 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. $Id: document.py 110536 2010-04-06 02:59:44Z tseaver $ iNi c C s2 | 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 | j } | j | t d | | | d 7} xd | D]\ \ } } t | d s'd | j | j p]d f } | t t | | | q'q'W| d 8} | t d | | | d 7} xm | D]e \ } } t | d rd | j | j | j pd f } | t t | | | qqWd 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 namesAndDescriptionst sortt hasattrR t join( t It munget rt outpt levelt baset basest bt itemR t namet desc( ( s; /usr/lib/python2.7/dist-packages/zope/interface/document.pyt asStructuredText sD " # #c C s | j d d j d } | j d g } | r t g | D]"