Package Products :: Package ZenWidgets :: Package browser :: Module Portlets :: Class DeviceIssuesPortletView |
[hide private]
[frames] | no frames]

# Class DeviceIssuesPortletView

source code

                  Acquisition.Explicit --+
                                         |
            zope.location.Location --+   |
                                     |   |
    zope.publisher.browser.BrowserView --+
                                         |
                  Five.browser.BrowserView --+
                                             |
                                            DeviceIssuesPortletView

A list of devices with issues.

Instance Methods | [hide private]
__call__(self) | source code
getDeviceIssuesJSON(self) Get devices with issues in a form suitable for a portlet on the dashboard. | source code
getDeviceDashboard(self) return device info for bad device to dashboard | source code
Inherited from `zope.publisher.browser.BrowserView`: `__init__`

Class Variables | [hide private]
Inherited from `zope.publisher.browser.BrowserView`: `__parent__`

Method Details | [hide private]

### getDeviceIssuesJSON(self) | source code
    Get devices with issues in a form suitable for a portlet on the
    dashboard.

    @return: A JSON representation of a dictionary describing devices
    @rtype: "{
        'columns':['Device', "Events'],
        'data':[
            {'Device':'<a href=/>', 'Events':'<div/>'},
            {'Device':'<a href=/>', 'Events':'<div/>'},
        ]}"
Decorators: `@json`