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

# Class PythonColumnHandler

source code

    object --+
             |
            PythonColumnHandler

A column handler accepts row context (like a device, component, or extra information) and returns the column value. This class specifically executes a python expression that can use the row context.

The row context includes the device object ('device') and, if available, the component object ('component'). It also includes report information such as the start date ('start') and end date ('end') of the report.

Instance Methods | [hide private]
__init__(self, talesExpression, extraContext={}) | source code
__call__(self, device, component=None, extra=None, value=None) | source code

Method Details | [hide private]

### __init__(self, talesExpression, extraContext={}) (Constructor) | source code
Parameters: `talesExpression` - A python expression that can use the context Overrides: object.__init__