Package ganeti :: Module cli :: Class _QueryColumnFormatter
[hide private]
[frames] | no frames]

Class _QueryColumnFormatter

source code


Callable class for formatting fields of a query.

Instance Methods [hide private]
 
__init__(self, fn, status_fn, verbose)
Initializes this class.
source code
 
__call__(self, data)
Returns a field's string representation.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fn, status_fn, verbose)
(Constructor)

source code 

Initializes this class.

Parameters:
  • fn (callable) - Formatting function
  • status_fn (callable) - Function to report fields' status
  • verbose (boolean) - whether to use verbose field descriptions or not
Overrides: object.__init__