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

Class TableColumn

source code


Describes a column for FormatTable.

Instance Methods [hide private]
 
__init__(self, title, fn, align_right)
Initializes this class.
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, title, fn, align_right)
(Constructor)

source code 

Initializes this class.

Parameters:
  • title (string) - Column title
  • fn (callable) - Formatting function
  • align_right (bool) - Whether to align values on the right-hand side
Overrides: object.__init__