Package Products :: Package ZenUtils :: Module Ext :: Class DirectRouter |
[hide private]
[frames] | no frames]

# Class DirectRouter

source code

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

Base class for Ext.Direct routers.

Ext.Direct allows one to create an API that communicates with a single URL, which then routes requests to the appropriate method. The client-side API object matches the server-side API object.

This base class parses an Ext.Direct request, which contains the name of the method and any data that should be passed, and routes the data to the approriate method. It then receives the output of that call and puts it into the data structure expected by Ext.Direct.

@rtype JSON

Instance Methods | [hide private]
_set_asof(self, asof) | source code
__call__(self) | source code
Inherited from `zope.publisher.browser.BrowserView`: `__init__`

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