Module ImportFrom alias ImportFrom alias identifier alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str UnaryOpNot NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list If NameLoad body Return Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad NameLoad body Return NameLoad orelse If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If CompareIn NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list If NameLoad body Return Call NameLoad NameLoad Return NameLoad decorator_list
N/A functools wraps flask current_app app g request flask.ext.restful abort shiva.constants HTTP allow_method N/A N/A func N/A None N/A N/A Checks if the method is globally allowed, raising a 405 if not.
     wrapped N/A N/A func N/A N/A decorated N/A N/A N/A args kwargs N/A N/A allow_delete N/A N/A N/A app config get ALLOW_DELETE False N/A N/A N/A N/A func func_name delete N/A allow_delete N/A N/A N/A abort N/A HTTP METHOD_NOT_ALLOWED N/A N/A func args kwargs N/A N/A wraps func N/A decorated N/A N/A func N/A N/A N/A wrapped func N/A wrapped N/A allow_origins N/A N/A func custom_origins N/A None None N/A N/A 
    Add headers for Cross-origin resource sharing based on
    `CORS_ALLOWED_ORIGINS` in config, or parameters passed to the decorator.
    `CORS_ALLOWED_ORIGINS` can be a list of allowed origins or `"*"` to allow
    all origins.

     wrapped N/A N/A func N/A N/A _get_origin N/A N/A allowed_origins origin N/A N/A N/A  Helper method to discover the proper value for
            Access-Control-Allow-Origin to use.

            If the allowed origin is a string it will check if it's '*'
            wildcard or an actual domain. When a tuple or list is given
            instead, it will look for the current domain in the list. If any of
            the checks fail it will return False.

             N/A N/A N/A type allowed_origins N/A str unicode N/A N/A N/A N/A allowed_origins * N/A allowed_origins origin N/A N/A allowed_origins N/A N/A N/A N/A type allowed_origins N/A list tuple N/A N/A N/A origin allowed_origins N/A N/A origin N/A False N/A decorated N/A N/A N/A args kwargs N/A N/A origin N/A N/A N/A request headers get Origin N/A allowed_origins N/A custom_origins N/A N/A N/A app config get CORS_ALLOWED_ORIGINS N/A N/A N/A g cors N/A _get_origin allowed_origins origin N/A N/A func args kwargs N/A N/A wraps func N/A decorated N/A N/A func N/A N/A N/A wrapped func N/A wrapped N/A