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={}) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
__call__(self, device, component=None, extra=None, value=None) | 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, talesExpression, extraContext={}) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Parameters: `talesExpression` - A python expression that can use the context Overrides: object.__init__