Home | Trees | Indices | Help |
|
---|
|
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
allow_GET = allow_method('GET')
|
|
allow_HEAD = allow_method('HEAD')
|
|
allow_GETHEAD = allow_method('GET', 'HEAD')
|
|
allow_POST = allow_method('POST')
|
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 tht repeated application can allow |
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.
|
Copy the WSGIWebAPI properties from a function to a decorated function. If you write your own decorators and apply them to WSGIWebAPI decorated functions, you should call this method in your decorator to copy the WSGIWebAPI 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 WSGIWebAPI 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 WSGIWebAPI properties across. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Feb 2 16:30:51 2009 | http://epydoc.sourceforge.net |