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

Class ProductionStatePortletView

source code

         Acquisition.Explicit --+    
                                |    
Products.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 Products.Five.browser.BrowserView: __init__

Class Variables [hide private]

Inherited from Products.Five.browser.BrowserView: security

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