Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num Num Str body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Num If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Num body If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If CompareLt NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareGt NameLoad AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareLt NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareLt BinOpSub NameLoad NameLoad Num body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareGtE BinOpAdd NameLoad NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Dict AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list decorator_list
N/A django.conf settings tastypie.exceptions BadRequest urllib urlencode Paginator N/A object N/A N/A 
    Limits result sets down to sane amounts for passing to the client.

    This is used in place of Django's ``Paginator`` due to the way pagination
    works. ``limit`` & ``offset`` (tastypie) are used in place of ``page``
    (Django) so none of the page-related calculations are necessary.

    This implementation also provides additional details like the
    ``total_count`` of resources seen and convenience links to the
    ``previous``/``next`` pages of data as available.
     __init__ N/A N/A self request_data objects resource_uri limit offset max_limit collection_name N/A None None 0 1000 objects N/A N/A 
        Instantiates the ``Paginator`` and allows for some configuration.

        The ``request_data`` argument ought to be a dictionary-like object.
        May provide ``limit`` and/or ``offset`` to override the defaults.
        Commonly provided ``request.GET``. Required.

        The ``objects`` should be a list-like object of ``Resources``.
        This is typically a ``QuerySet`` but can be anything that
        implements slicing. Required.

        Optionally accepts a ``limit`` argument, which specifies how many
        items to show at a time. Defaults to ``None``, which is no limit.

        Optionally accepts an ``offset`` argument, which specifies where in
        the ``objects`` to start displaying results from. Defaults to 0.

        Optionally accepts a ``max_limit`` argument, which the upper bound
        limit. Defaults to ``1000``. If you set it to 0 or ``None``, no upper
        bound will be enforced.
         N/A N/A self request_data request_data N/A N/A self objects objects N/A N/A self limit limit N/A N/A self max_limit max_limit N/A N/A self offset offset N/A N/A self resource_uri resource_uri N/A N/A self collection_name collection_name N/A get_limit N/A N/A self N/A N/A N/A 
        Determines the proper maximum number of results to return.

        In order of importance, it will use:

            * The user-requested ``limit`` from the GET parameters, if specified.
            * The object-level ``limit`` if specified.
            * ``settings.API_LIMIT_PER_PAGE`` if specified.

        Default is 20 per page.
         N/A settings_limit N/A getattr settings API_LIMIT_PER_PAGE 20 N/A N/A limit N/A self request_data N/A N/A limit N/A N/A self request_data N/A limit N/A N/A N/A N/A self limit None N/A N/A limit N/A self limit N/A N/A limit settings_limit N/A N/A N/A limit N/A int limit N/A N/A N/A ValueError N/A N/A N/A BadRequest N/A Invalid limit '%s' provided. Please provide a positive integer. limit N/A N/A limit 0 N/A N/A N/A self limit N/A N/A limit N/A self limit N/A N/A limit settings_limit N/A N/A limit 0 N/A N/A N/A BadRequest N/A Invalid limit '%s' provided. Please provide a positive integer >= 0. limit N/A N/A N/A self max_limit N/A limit N/A self max_limit N/A N/A N/A self max_limit N/A limit N/A get_offset N/A N/A self N/A N/A N/A 
        Determines the proper starting offset of results to return.

        It attempst to use the user-provided ``offset`` from the GET parameters,
        if specified. Otherwise, it falls back to the object-level ``offset``.

        Default is 0.
         N/A offset N/A self offset N/A N/A offset N/A self request_data N/A N/A offset N/A N/A self request_data N/A offset N/A N/A N/A offset N/A int offset N/A N/A N/A ValueError N/A N/A N/A BadRequest N/A Invalid offset '%s' provided. Please provide an integer. offset N/A N/A offset 0 N/A N/A N/A BadRequest N/A Invalid offset '%s' provided. Please provide a positive integer >= 0. offset N/A offset N/A get_slice N/A N/A self limit offset N/A N/A N/A 
        Slices the result set to the specified ``limit`` & ``offset``.
         N/A N/A limit 0 N/A N/A N/A BadRequest N/A Invalid limit '%s' provided. Please provide a positive, non-zero, integer. limit N/A N/A N/A self objects N/A offset N/A offset limit N/A get_count N/A N/A self N/A N/A N/A 
        Returns a count of the total number of objects seen.
         N/A N/A N/A N/A N/A N/A self objects count N/A N/A N/A N/A AttributeError TypeError N/A N/A N/A len N/A self objects N/A get_previous N/A N/A self limit offset N/A N/A N/A 
        If a previous page is available, will generate a URL to request that
        page. If not available, this returns ``None``.
         N/A N/A N/A offset limit 0 N/A N/A None N/A N/A N/A self _generate_uri limit N/A offset limit N/A get_next N/A N/A self limit offset count N/A N/A N/A 
        If a next page is available, will generate a URL to request that
        page. If not available, this returns ``None``.
         N/A N/A N/A offset limit count N/A N/A None N/A N/A N/A self _generate_uri limit N/A offset limit N/A _generate_uri N/A N/A self limit offset N/A N/A N/A N/A N/A self resource_uri None N/A N/A None N/A N/A N/A request_params N/A N/A N/A self request_data copy N/A N/A limit request_params N/A N/A N/A request_params N/A limit N/A N/A offset request_params N/A N/A N/A request_params N/A offset N/A N/A N/A request_params update N/A limit offset limit offset N/A encoded_params N/A N/A request_params urlencode N/A N/A N/A AttributeError N/A N/A request_params N/A N/A N/A k v N/A N/A N/A self request_data items N/A N/A N/A isinstance v unicode N/A N/A N/A request_params N/A k N/A N/A v encode utf-8 N/A N/A N/A request_params N/A k v N/A N/A limit request_params N/A N/A N/A request_params N/A limit N/A N/A offset request_params N/A N/A N/A request_params N/A offset N/A N/A N/A request_params update N/A limit offset limit offset N/A encoded_params N/A urlencode request_params N/A N/A %s?%s N/A N/A self resource_uri encoded_params N/A page N/A N/A self N/A N/A N/A 
        Generates all pertinent data about the requested page.

        Handles getting the correct ``limit`` & ``offset``, then slices off
        the correct set of results and returns all pertinent metadata.
         N/A limit N/A N/A self get_limit N/A offset N/A N/A self get_offset N/A count N/A N/A self get_count N/A objects N/A N/A self get_slice limit offset N/A meta N/A offset limit total_count offset limit count N/A limit N/A N/A N/A meta N/A previous N/A N/A self get_previous limit offset N/A N/A meta N/A next N/A N/A self get_next limit offset count N/A N/A N/A self collection_name meta objects meta N/A N/A