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) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | 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
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, columnName, columnHandler=None) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature 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