Package Products :: Package ZenReports :: Module AliasPlugin :: Class Column
[hide private]
[frames] | no frames]

Class Column

source code

object --+
         |
        Column

Represents a column in a report row. Returns a value when given the context represented by the row. For example, a brain-dead report might list the paths of all the devices in the system. A Column object that represents the path column would know how to return the path given the device.

Instance Methods [hide private]
 
__init__(self, columnName, columnHandler=None) source code
 
getColumnName(self) source code
 
getValue(self, device, component=None, extra=None) source code
 
getAliasName(self)
@return the alias that this column uses (if any)
source code
Method Details [hide private]

__init__(self, columnName, columnHandler=None)
(Constructor)

source code 
Parameters:
  • columnName - the name of the column
  • columnHandler - optional object or method that knows how to take the row context and return the column value
Overrides: object.__init__

getValue(self, device, component=None, extra=None)

source code 
Parameters:
  • device - the device represented by this row
  • component - the component represented by this row (if present)
  • extra - extra context passed to the columnHandler that will generate the column value