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

# Class ProductionStatePortletView

source code

    Five.browser.BrowserView --+
                               |
                              ProductionStatePortletView

Return a map of device to production state in a format suitable for a YUI data table.

Instance Methods | [hide private]
__call__(self, *args, **kwargs) | source code
getDevProdStateJSON(self, prodStates=['Maintenance']) Return a map of device to production state in a format suitable for a YUI data table. | source code

Method Details | [hide private]

### __call__(self, *args, **kwargs) (Call operator) | source code
Decorators: `@nocache` `@formreq`

### getDevProdStateJSON(self, prodStates=['Maintenance']) | source code
    Return a map of device to production state in a format suitable for a
    YUI data table.

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