Package ZenModel :: Package browser :: Module DeviceStatus :: Class DeviceComponentTable
[hide private]
[frames] | no frames]

Class DeviceComponentTable

source code

         Acquisition.Explicit --+    
                                |    
Products.Five.browser.BrowserView --+
                                    |
                                   DeviceComponentTable

Populates the component table that appears on the device status page.

Instance Methods [hide private]
 
__call__(self) source code
dict
getDeviceComponentEventSummary(self, device)
Return a list of categories of components on a device along with event pills for the maximum severity event on each category in the form of a JSON object ready for inclusion in a YUI data table.
source code

Inherited from Products.Five.browser.BrowserView: __init__

Class Variables [hide private]

Inherited from Products.Five.browser.BrowserView: security

Method Details [hide private]

getDeviceComponentEventSummary(self, device)

source code 
Return a list of categories of components on a device along with event pills for the maximum severity event on each category in the form of a JSON object ready for inclusion in a YUI data table. If a category contains components with events, the component and its associated event pill are returned as a separate (indented) row.
Parameters:
  • device (Device) - The device for which to gather component data
Returns: dict
A dictionary representation of the columns and rows of the table
Decorators:
  • @json