Home | Trees | Indices | Help |
|
---|
|
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Decorator to wrap function's return value as JSON. Before the decorator is applied, the function should return a structure to be converted to JSON. The decorator will set the content_type automatically (to text/javascript). |
Decorator to add JSONP support to an API function. This adds a query parameter (by default, jsonp, but this may be altered
with the By default, the jsonp parameter may only contain upper and lowercase
ASCII alphabetic characters (A-Z, a-z), numbers (0-9), full stops (.),
underscores (_), and brackets ([ and ]), but this may be altered by setting
the See http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/ for some of the rationale behind JSONP support. |
Decorator to restrict the methods allowed to a specific set. May be applied multiple times, to allow more than one method to be allowed. If applied at all, any methods other than those specified will result in a 405 or 501 error (depending whether the exception is one of the standard known methods). (This stores the allowed methods in an attribute of the decorated function, so that repeated application of the decorator can add to the allowed methods.) |
Decorator to add parameter validation. If this is used at all, the noparams decorator may not also be used. This decorator may only be used once for each parameter name.
|
Decorator to prevent POST/PUT data being read and parsed. If this is used, the request body will not be read by WSGIWAPI. The
application code can read it from the |
Copy the WSGIWAPI properties from a function to a decorated function. If you write your own decorators and apply them to WSGIWAPI decorated functions, you should call this method in your decorator to copy the WSGIWAPI properties into your decorated function. If you don't do this, you may get confusing failures, such as pathinfo not being allowed. |
Apply a decorator, but also copy the WSGIWAPI properties across. To use this, pass the decorator you wish to apply as a parameter to this decorator. The returned decorator will apply this decorator, and then copy the WSGIWAPI properties across. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 17 02:27:22 2013 | http://epydoc.sourceforge.net |