Module Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Str FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num keyword TupleLoad Str Num FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr ListLoad NameLoad Assign NameStore NameLoad If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num body Assign AttributeStore NameLoad attr UnaryOpNot NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list Return Call NameLoad NameLoad keyword Str keyword NameLoad decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults Str body FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Str NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Raise Call NameLoad NameLoad decorator_list NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults BinOpMult Num Num Str body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If Call NameLoad NameLoad Str body Expr Str AugAssignAdd NameStore BinOpMod Str Call NameLoad AttributeLoad NameLoad attr If NameLoad body Expr Str AugAssignAdd NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Num NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad If BoolOpAnd CompareGtE NameLoad NameLoad CompareGt NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpSub NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad BinOpAdd NameLoad Num NameLoad BinOpSub NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body If Call NameLoad NameLoad Str body Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr TryExcept body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str handlers ExceptHandler type NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad If CompareIn NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeStore AttributeLoad NameLoad attr attr Call NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise NameLoad orelse Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args defaults vararg body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot CompareIn Call AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr If CompareEq AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str orelse If CompareEq AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str orelse If CompareEq AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str orelse AugAssignAdd NameStore Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Str Return TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad NameLoad NameLoad NameLoad ListLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Print BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Print BinOpMod Str Call NameLoad NameLoad Print NameLoad decorator_list
N/A N/A time N/A django django.http HttpResponseNotAllowed HttpResponseForbidden HttpResponse HttpResponseBadRequest django.core.urlresolvers reverse django.core.cache cache django get_version django_version django.core.mail send_mail mail_admins django.conf settings django.utils.translation ugettext _ django.template loader TemplateDoesNotExist django.contrib.sites.models Site decorator decorator datetime datetime timedelta N/A __version__ 0.2.3rc1 get_version N/A N/A N/A N/A N/A __version__ N/A format_error N/A N/A error N/A N/A N/A N/A Piston/%s (Django %s) crash report:

%s N/A N/A get_version N/A django_version error N/A rc_factory N/A object N/A N/A 
    Status codes.
     N/A CODES N/A dict ALL_OK N/A OK 200 CREATED N/A Created 201 ACCEPTED N/A Accepted 202 DELETED N/A 204 BAD_REQUEST N/A Bad Request 400 FORBIDDEN N/A Forbidden 401 NOT_FOUND N/A Not Found 404 NOT_ACCEPTABLE N/A Not acceptable 406 DUPLICATE_ENTRY N/A Conflict/Duplicate 409 NOT_HERE N/A Gone 410 INTERNAL_ERROR N/A Internal Error 500 NOT_IMPLEMENTED N/A Not Implemented 501 THROTTLED N/A Throttled 503 __getattr__ N/A N/A self attr N/A N/A N/A 
        Returns a fresh `HttpResponse` when getting 
        an "attribute". This is backwards compatible
        with 0.2, which is important.
         N/A N/A N/A N/A r c N/A N/A N/A self CODES get attr N/A N/A N/A TypeError N/A N/A N/A AttributeError attr HttpResponseWrapper N/A HttpResponse N/A N/A 
            Wrap HttpResponse and make sure that the internal
            _is_string/_base_content_is_iter flag is updated when the
            _set_content method (via the content property) is called
             _set_content N/A N/A self content N/A N/A N/A 
                Set the _container and _is_string /
                _base_content_is_iter properties based on the type of
                the value parameter. This logic is in the construtor
                for HttpResponse, but doesn't get repeated when
                setting HttpResponse.content although this bug report
                (feature request) suggests that it should:
                http://code.djangoproject.com/ticket/9403
                 N/A is_string False N/A N/A N/A N/A isinstance content basestring N/A hasattr content __iter__ N/A N/A N/A self _container content N/A N/A N/A self _container N/A content N/A is_string True N/A N/A N/A django VERSION N/A 1 4 N/A N/A N/A self _base_content_is_iter N/A is_string N/A N/A N/A self _is_string is_string N/A N/A content N/A property N/A HttpResponse _get_content _set_content N/A N/A N/A HttpResponseWrapper r content_type text/plain status c N/A N/A N/A rc N/A rc_factory FormValidationError N/A Exception N/A __init__ N/A N/A self form N/A N/A N/A N/A self form form N/A N/A HttpStatusCode N/A Exception N/A __init__ N/A N/A self response N/A N/A N/A N/A self response response N/A N/A validate N/A N/A v_form operation N/A POST N/A wrap N/A N/A f self request N/A a kwa N/A N/A form N/A v_form N/A getattr request operation N/A request FILES N/A N/A N/A form is_valid N/A N/A N/A setattr request form form N/A N/A f self request a kwa N/A N/A N/A FormValidationError form N/A decorator N/A wrap N/A throttle N/A N/A max_requests timeout extra N/A N/A 60 60 N/A N/A 
    Simple throttling decorator, caches
    the amount of requests made in cache.
    
    If used on a view where users are required to
    log in, the username is used, otherwise the
    IP address of the originating request is used.
    
    Parameters::
     - `max_requests`: The maximum number of requests
     - `timeout`: The timeout for the cache entry (default: 1 hour)
     wrap N/A N/A f self request N/A args kwargs N/A N/A N/A N/A N/A request user is_authenticated N/A N/A ident N/A N/A request user username N/A N/A ident N/A N/A N/A request META get REMOTE_ADDR None N/A N/A hasattr request throttle_extra N/A N/A 
            Since we want to be able to throttle on a per-
            application basis, it's important that we realize
            that `throttle_extra` might be set on the request
            object. If so, append the identifier name with it.
             N/A ident N/A :%s N/A str N/A request throttle_extra N/A ident N/A N/A 
            Preferrably we'd use incr/decr here, since they're
            atomic in memcached, but it's in django-trunk so we
            can't use it yet. If someone sees this after it's in
            stable, you can change it here.
             N/A ident N/A :%s extra N/A now N/A N/A time time N/A N/A count expiration N/A N/A cache get ident N/A 1 None N/A N/A expiration None N/A N/A expiration N/A now timeout N/A N/A N/A count max_requests N/A expiration now N/A N/A t N/A rc THROTTLED N/A wait N/A int N/A expiration now N/A N/A t content N/A Throttled, wait %d seconds. wait N/A N/A t N/A Retry-After wait N/A t N/A N/A N/A cache set ident N/A N/A count 1 expiration N/A expiration now N/A N/A f self request args kwargs N/A decorator N/A wrap N/A coerce_put_post N/A N/A request N/A N/A N/A 
    Django doesn't particularly understand REST.
    In case we send data over PUT, Django won't
    actually look at the data and load it. We need
    to twist its arm here.
    
    The try/except abominiation here is due to a bug
    in mod_python. This should fix it.
     N/A N/A N/A request method PUT N/A N/A N/A hasattr request _post N/A N/A N/A request _post N/A N/A request _files N/A N/A N/A N/A request method POST N/A N/A N/A request _load_post_and_files N/A N/A request method PUT N/A N/A N/A AttributeError N/A N/A N/A N/A request META N/A REQUEST_METHOD POST N/A N/A N/A request _load_post_and_files N/A N/A N/A request META N/A REQUEST_METHOD PUT N/A N/A request PUT N/A request POST N/A MimerDataException N/A Exception N/A N/A 
    Raised if the content_type and data don't match
     N/A N/A Mimer N/A object N/A N/A TYPES N/A dict __init__ N/A N/A self request N/A N/A N/A N/A self request request N/A is_multipart N/A N/A self N/A N/A N/A content_type N/A N/A self content_type N/A N/A content_type None N/A N/A N/A N/A N/A N/A content_type lstrip startswith multipart N/A False N/A loader_for_type N/A N/A self ctype N/A N/A N/A 
        Gets a function ref to deserialize content
        for a certain mimetype.
         N/A N/A loadee mimes N/A N/A N/A Mimer TYPES iteritems N/A N/A mime mimes N/A N/A N/A N/A ctype startswith mime N/A N/A loadee N/A content_type N/A N/A self N/A N/A N/A 
        Returns the content type of the request in all cases where it is
        different than a submitted form - application/x-www-form-urlencoded
         N/A type_formencoded application/x-www-form-urlencoded N/A ctype N/A N/A N/A N/A self request META get CONTENT_TYPE type_formencoded N/A N/A type_formencoded ctype N/A N/A None N/A ctype N/A translate N/A N/A self N/A N/A N/A 
        Will look at the `Content-type` sent by the client, and maybe
        deserialize the contents into the format they sent. This will
        work for JSON, YAML, XML and Pickle. Since the data is not just
        key-value (and maybe just a list), the data will be placed on
        `request.data` instead, and the handler will have to read from
        there.
        
        It will also set `request.content_type` so the handler has an easy
        way to tell what's going on. `request.content_type` will always be
        None for form-encoded and/or multipart form data (what your browser sends.)
         N/A ctype N/A N/A self content_type N/A N/A N/A self request content_type ctype N/A N/A N/A N/A N/A self is_multipart ctype N/A N/A loadee N/A N/A self loader_for_type ctype N/A loadee N/A N/A N/A N/A N/A N/A self request data N/A loadee N/A N/A self request raw_post_data N/A N/A N/A self request POST N/A N/A self request PUT N/A dict N/A N/A N/A N/A TypeError ValueError N/A N/A MimerDataException N/A N/A N/A N/A self request data None N/A N/A self request N/A register N/A N/A cls loadee types N/A N/A N/A N/A N/A cls TYPES N/A loadee types N/A classmethod unregister N/A N/A cls loadee N/A N/A N/A N/A N/A N/A cls TYPES pop loadee N/A classmethod N/A translate_mime N/A N/A request N/A N/A N/A request N/A N/A N/A Mimer request translate N/A require_mime N/A N/A N/A mimes N/A N/A 
    Decorator requiring a certain mimetype. There's a nifty
    helper called `require_extended` below which requires everything
    we support except for post-data via form.
     wrap N/A N/A f self request N/A args kwargs N/A N/A m N/A Mimer request N/A realmimes N/A set N/A rewrite N/A json yaml xml pickle application/json application/x-yaml text/xml application/python-pickle N/A N/A idx mime N/A enumerate mimes N/A N/A N/A N/A realmimes add N/A N/A rewrite get mime mime N/A N/A N/A N/A N/A m content_type realmimes N/A N/A N/A rc BAD_REQUEST N/A N/A f self request args kwargs N/A decorator N/A wrap N/A N/A require_extended N/A require_mime json yaml xml pickle send_consumer_mail N/A N/A consumer N/A N/A N/A 
    Send a consumer an email depending on what their status is.
     N/A N/A N/A subject N/A N/A settings PISTON_OAUTH_EMAIL_SUBJECTS N/A N/A consumer status N/A N/A N/A AttributeError N/A N/A subject N/A Your API Consumer for %s  N/A N/A N/A N/A Site objects get_current name N/A N/A N/A consumer status accepted N/A N/A subject was accepted! N/A N/A N/A N/A consumer status canceled N/A N/A subject has been canceled. N/A N/A N/A N/A consumer status rejected N/A N/A subject has been rejected. N/A N/A subject is awaiting approval. N/A template N/A piston/mails/consumer_%s.txt N/A consumer status N/A N/A N/A body N/A N/A loader render_to_string template N/A consumer user consumer N/A consumer user N/A N/A N/A TemplateDoesNotExist N/A N/A  
        They haven't set up the templates, which means they might not want
        these emails sent.
         N/A N/A N/A N/A sender N/A settings PISTON_FROM_EMAIL N/A N/A N/A AttributeError N/A N/A sender N/A settings DEFAULT_FROM_EMAIL N/A N/A consumer user N/A N/A N/A send_mail N/A _ subject body sender N/A N/A N/A consumer user email fail_silently True N/A N/A N/A N/A consumer status pending N/A len N/A settings ADMINS N/A N/A N/A mail_admins N/A _ subject body fail_silently True N/A N/A N/A settings DEBUG N/A consumer user N/A N/A N/A Mail being sent, to=%s N/A N/A consumer user email N/A N/A Subject: %s N/A _ subject N/A body N/A