/usr/lib/python2.6/site-packages/cliff
Edit: /usr/lib/python2.6/site-packages/cliff/show.pyc (2259B)
Ñò
yDVc @ su d Z d d k Z d d k Z d d k Z d d k l Z e i e ƒ Z e i e i
ƒ d e f d „ ƒ Yƒ Z d S( sB Application base class for displaying data about a single object.
iÿÿÿÿNi ( t DisplayCommandBaset ShowOnec B sP e Z d Z e d „ ƒ Z e d „ ƒ Z e i d „ ƒ Z d „ Z d „ Z
RS( sB Command base class for displaying data about a single object.
c C s d S( Ns cliff.formatter.show( ( t self( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/show.pyt formatter_namespace s c C s d S( Nt table( ( R ( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/show.pyt formatter_default s c C s d S( s\ Return a two-part tuple with a tuple of column names
and a tuple of values.
N( ( R t parsed_args( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/show.pyt take_action s c C s« | i p
| } nu g } | D]! } | | i j o | | q q ~ } g } | D] } | | | j qT ~ } t | i | | ƒ ƒ } | i i | | | i i | ƒ d S( Ni ( t columnst listt _compress_iterablet formattert emit_onet appt stdout( R R t column_namest datat columns_to_includet _[1]t ct _[2]t selector( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/show.pyt produce_output! s
$ c C s, | p h h f St t | i ƒ ƒ Œ Sd S( s{ Implement the common task of converting a dict-based object
to the two-column output that ShowOne expects.
N( t zipt sortedt items( R R ( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/show.pyt dict2columns1 s ( t __name__t
__module__t __doc__t propertyR R t abct abstractmethodR R R ( ( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/show.pyR s ( R R t loggingt sixt displayR t getLoggerR t LOGt
add_metaclasst ABCMetaR ( ( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/show.pyt
s