Package Products :: Package ZenEvents :: Package browser :: Module EventConsole :: Class EventConsole |
[hide private]
[frames] | no frames]

# Class EventConsole

source code

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

A view for Devices, CustomEventViews and EventViews that provides JSON data to populate the event console widget.

Instance Methods | [hide private]
__call__(self, **kwargs) | source code
"([[a, b, c], [a, b, c]], 17)" |
_getEventsData(self, offset=0, count=50, getTotalCount=True, startdate=None, enddate=None, filter='', severity=2, state=1, orderby='', **kwargs) Data that populates the event console. | source code
_getEventManager(self) | source code
_extract_data_from_zevent(self, zevent, fields) return a list of data elements that map to the fields parameter. | source code
Inherited from `zope.publisher.browser.BrowserView`: `__init__`

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

Method Details | [hide private]

### _getEventsData(self, offset=0, count=50, getTotalCount=True, startdate=None, enddate=None, filter='', severity=2, state=1, orderby='', **kwargs) | source code
Data that populates the event console. Returns: "([[a, b, c], [a, b, c]], 17)" A JSON representation of a tuple containing a list of lists of event info, and the total number of matching events Decorators: `@json` `@formreq`