Module Expr Str ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return Str decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub NameLoad Num Assign NameStore BinOpSub NameLoad Num Assign NameStore BinOpSub NameLoad Num If CompareEq NameLoad Num body Assign NameStore ListLoad Num Num NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore ListLoad Num Num Num NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore ListLoad Num Num Num Num NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore ListLoad Num Num Num Num Num NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore ListLoad Num Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore ListLoad Num Num NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore ListLoad Num Num NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore ListLoad Num Num NameLoad NameLoad NameLoad orelse If CompareLtGt NameLoad NameLoad Num body Assign NameStore ListLoad Num Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
Module: Paginator template rendering helpers for MDTUI

Project: Adlibre DMS
Copyright: Adlibre Pty Ltd 2012
License: See LICENSE for license information
Author: Iurii Garmash
 django template django.conf settings N/A SEP N/A getattr settings MUI_SEARCH_PAGINATOR_PAGE_SEPARATOR ... N/A register N/A N/A template Library pages_sequence N/A N/A context paginated N/A N/A N/A 
    Generates pages sequence for rendering paginator pages list

    Note!: Assuming we have more then 10 pages
     N/A N/A N/A N/A paginated paginator num_pages 9 N/A N/A N/A context N/A rebuild_paginated N/A rebuild_sequence_digg paginated N/A N/A N/A N/A register simple_tag takes_context True rebuild_sequence_digg N/A N/A paginated N/A N/A N/A 
    Rebuilding pages range into sequence of digg like paginator.

    e.g.:
    |1|2|...|4|_5_|6|...|20|21|
    here page 5 is current
    So you can iterate through that
    and render paginator pages in template simply with "for" loop

    Assuming pages range is more, or equal 10 pages
     N/A sep N/A str SEP N/A output_range N/A N/A current_page N/A paginated number N/A prev_to_current_page N/A current_page 1 N/A next_to_current_page N/A current_page 1 N/A last_page N/A N/A paginated paginator num_pages N/A prev_to_last_page N/A last_page 1 N/A prev_to_prev_last_page N/A last_page 2 N/A first_end_page N/A last_page 3 N/A N/A current_page 1 N/A N/A output_range N/A 1 2 sep prev_to_last_page last_page N/A N/A N/A current_page 2 N/A N/A output_range N/A 1 2 3 sep prev_to_last_page last_page N/A N/A N/A current_page 3 N/A N/A output_range N/A 1 2 3 4 sep prev_to_last_page last_page N/A N/A N/A current_page 4 N/A N/A output_range N/A 1 2 3 4 5 sep prev_to_last_page last_page N/A N/A N/A current_page first_end_page N/A N/A output_range N/A 1 2 sep prev_to_current_page current_page next_to_current_page prev_to_last_page last_page N/A N/A N/A current_page prev_to_prev_last_page N/A N/A output_range N/A 1 2 sep prev_to_current_page current_page prev_to_last_page last_page N/A N/A N/A current_page prev_to_last_page N/A N/A output_range N/A 1 2 sep prev_to_current_page current_page last_page N/A N/A N/A current_page last_page N/A N/A output_range N/A 1 2 sep prev_to_last_page last_page N/A N/A N/A current_page first_end_page 4 N/A N/A output_range N/A 1 2 sep prev_to_current_page current_page next_to_current_page sep prev_to_last_page last_page N/A output_range N/A