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
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