/usr/lib/python2.6/site-packages/cliff/formatters
Edit: /usr/lib/python2.6/site-packages/cliff/formatters/base.pyc (2522B)
Ñò
yDVc @ sš d Z d d k Z d d k Z e i e i ƒ d e f d „ ƒ Yƒ Z e i e i ƒ d e f d „ ƒ Yƒ Z e i e i ƒ d e f d „ ƒ Yƒ Z d S( s Base classes for formatters.
iÿÿÿÿNt Formatterc B s e Z e i d „ ƒ Z RS( c C s d S( s\ Add any options to the argument parser.
Should use our own argument group.
N( ( t selft parser( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/formatters/base.pyt add_argument_group s ( t __name__t
__module__t abct abstractmethodR ( ( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/formatters/base.pyR s t
ListFormatterc B s e Z d Z e i d „ ƒ Z RS( sK Base class for formatters that know how to deal with multiple objects.
c C s d S( sv Format and print the list from the iterable data source.
:param column_names: names of the columns
:param data: iterable data source, one tuple per object
with values in order of column names
:param stdout: output stream where data should be written
:param parsed_args: argparse namespace from our local options
N( ( R t column_namest datat stdoutt parsed_args( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/formatters/base.pyt emit_list s ( R R t __doc__R R R
( ( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/formatters/base.pyR s t SingleFormatterc B s e Z d Z e i d „ ƒ Z RS( s= Base class for formatters that work with single objects.
c C s d S( sQ Format and print the values associated with the single object.
:param column_names: names of the columns
:param data: iterable data source with values in order of column names
:param stdout: output stream where data should be written
:param parsed_args: argparse namespace from our local options
N( ( R R R
R R ( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/formatters/base.pyt emit_one* s ( R R R R R R ( ( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/formatters/base.pyR % s ( R R t sixt
add_metaclasst ABCMetat objectR R R ( ( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/formatters/base.pyt
s