Module Assign NameStore Str ImportFrom alias ImportFrom alias ImportFrom alias identifier Import alias Import alias FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If CompareLtE Call NameLoad NameLoad Num body Assign NameStore Call NameLoad Call NameLoad NameLoad orelse TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Return NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If BoolOpAnd UnaryOpNot NameLoad CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Num orelse Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr Num Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body Pass decorator_list Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str If CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str NameLoad orelse Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str NameLoad Num If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults vararg body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Assign NameStore Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad Str NameLoad Str orelse Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list decorator_list
N/A N/A __author__ William T. Katz google.appengine.ext webapp google.appengine.ext.webapp template django.utils simplejson json N/A logging N/A os send_successful_response N/A N/A handler response N/A N/A N/A N/A N/A logging debug Sending successful response: %s response N/A N/A N/A N/A N/A handler response out write response N/A get_sent_properties N/A N/A request_func propname_list N/A N/A N/A 
    This maps request strings to values in a hash, optionally run through
    a function with previous request values as parameters to the func.
    1) key -> just read in the corresponding request value
    2) tuple (key, func) -> Read the request value for the string key
        and pass it through func
    3) tuple (key, func, additional keys...) -> Get the request
        values for the additional keys and pass them through func
        before setting the key's value with the output.
    If a key is not present in the request, then we do not insert a key
    with None or empty string.  The key is simply absent, therefore allowing
    you to use the returned hash to initial a Model instance.
     N/A prop_hash N/A N/A item propname_list N/A N/A N/A isinstance item basestring N/A N/A key item N/A value N/A request_func item N/A N/A N/A isinstance item tuple N/A N/A key N/A item N/A 0 N/A prop_func N/A item N/A 1 N/A N/A N/A len item 2 N/A N/A value N/A prop_func N/A request_func key N/A N/A N/A N/A addl_keys N/A map N/A prop_hash get N/A item N/A 2 N/A value N/A prop_func addl_keys N/A N/A N/A N/A None N/A value N/A N/A N/A prop_hash N/A key value N/A prop_hash N/A methods_via_query_allowed N/A N/A handler_method N/A N/A N/A 
    A decorator to automatically re-route overloaded POSTs
    that specify the real HTTP method in a _method query string.

    To use it, decorate your post method like this:

    import restful
    ...
    @restful.methods_via_query_allowed
    def post(self):
      pass

    The decorator will check for a _method query string or POST argument,
    and if present, will redirect to delete(), put(), etc.
     redirect_if_needed N/A N/A self N/A args kwargs N/A N/A real_verb N/A N/A N/A self request get _method None N/A N/A N/A real_verb N/A X-HTTP-Method-Override N/A N/A self request environ N/A N/A real_verb N/A N/A N/A self request environ N/A X-HTTP-Method-Override N/A real_verb N/A N/A N/A N/A logging debug Redirected from POST. Detected method override = %s real_verb N/A method N/A N/A real_verb upper N/A N/A method HEAD N/A N/A N/A N/A self head args kwargs N/A N/A N/A method PUT N/A N/A N/A N/A self put args kwargs N/A N/A N/A method DELETE N/A N/A N/A N/A self delete args kwargs N/A N/A N/A method TRACE N/A N/A N/A N/A self trace args kwargs N/A N/A N/A method OPTIONS N/A N/A N/A N/A self head args kwargs N/A N/A N/A method POST N/A N/A N/A N/A self post args kwargs N/A N/A N/A method GET N/A N/A N/A N/A self get args kwargs N/A N/A N/A N/A self error 405 N/A N/A N/A handler_method self args kwargs N/A N/A redirect_if_needed N/A Controller N/A N/A webapp RequestHandler N/A N/A Responsible for handling all API requests readonly N/A N/A cls N/A N/A ReadOnlyHandler N/A Controller N/A post N/A N/A self N/A args N/A N/A N/A N/A self error 405 Method not supported N/A put N/A N/A self N/A args N/A N/A N/A N/A self error 405 Method not supported N/A delete N/A N/A self N/A args N/A N/A N/A N/A self error 405 Method not supported N/A N/A ServiceListHandlerReadOnly N/A ReadOnlyHandler cls N/A N/A N/A N/A ServiceListHandlerReadOnly N/A classmethod base_url N/A N/A self version N/A N/A N/A Returns the base url for the given host and version N/A host N/A N/A N/A N/A self request headers get host nohost N/A N/A admin/api N/A N/A self request path N/A N/A N/A N/A N/A N/A N/A N/A self request scheme :// host /admin/api/ version N/A N/A N/A N/A N/A N/A N/A N/A self request scheme :// host /api/ version N/A valid_version N/A N/A self version N/A N/A N/A N/A version v1 N/A error N/A N/A self code message N/A None N/A N/A Returns the JSON representation of an error message N/A N/A N/A N/A self response set_status code N/A error N/A error code True code N/A message N/A N/A N/A error N/A message message N/A N/A N/A self json error N/A success N/A N/A self message N/A None N/A N/A Returns the JSON representation of a success message N/A N/A N/A N/A self response set_status 200 N/A success N/A error code False 200 N/A message N/A N/A N/A success N/A message message N/A N/A N/A self json success N/A get N/A N/A self N/A params N/A N/A N/A N/A self redirect /.html N/A head N/A N/A self N/A params N/A N/A N/A render N/A N/A self templateparams N/A args N/A N/A Writes templateparams to a given template N/A path N/A p args N/A N/A path N/A N/A N/A os path join path p N/A N/A N/A N/A N/A self response out write N/A N/A template render path templateparams N/A json N/A N/A self data N/A N/A N/A 
        Renders the given data as json.
        If callback is valid, renders data as jsonp
         N/A callback N/A N/A N/A self request get callback default_value False N/A data N/A N/A json dumps data N/A callback N/A N/A N/A N/A N/A self response headers N/A Content-Type application/javascript N/A data N/A N/A N/A callback ( data ); N/A N/A N/A N/A N/A self response headers N/A Content-Type application/json N/A N/A N/A N/A N/A self response out write data N/A text N/A N/A self data N/A N/A N/A Renders the given data as text/plain N/A N/A N/A N/A N/A self response headers add_header Content-Type text/plain N/A N/A N/A N/A N/A self response out write data N/A xml N/A N/A self data N/A N/A N/A 
        Renders the given data as XML
        Currently unsupported
         N/A N/A N/A