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

# Class ProductionStatePortletView

source code

                  Acquisition.Explicit --+
                                         |
            zope.location.Location --+   |
                                     |   |
    zope.publisher.browser.BrowserView --+
                                         |
                  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
Inherited from `zope.publisher.browser.BrowserView`: `__init__`

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

Method Details | [hide private]

### __call__(self, *args, **kwargs) (Call operator) | source code
Decorators: `@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`