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

# Class DirectRouter

source code

    object --+
             |
            DirectRouter

Known Subclasses:
  - zope.router.ZopeDirectRouter

Basic Ext.Direct router class.

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.

Call an instance of this class with the JSON from an Ext.Direct request.

Instance Methods | [hide private]
__call__(self, body) | source code
_processDirectRequest(self, directRequest) | source code

Method Details | [hide private]

### __call__(self, body) (Call operator) | source code
Decorators: `@json`