Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/h/a/Havaiana-2.4.1/havaiana/__init__.py   Havaiana(Download)
from flask.helpers import send_file
from flask import Flask, render_template, redirect, request, flash
from flask.ext.paginate import Pagination
 
from config import ITEMS_PER_PAGE, SECRET_KEY
 
            #pagination handling
            pagination = Pagination(total=len(items), page=page,
                search=False, record_name=cls.plural_name,
                per_page=ITEMS_PER_PAGE, alignment="centered")

src/m/i/Microbe-1.0/microbe/utils.py   Microbe(Download)
from itertools import islice
from flask import abort, render_template
from flask.ext.paginate import Pagination
 
 
def create_pagination(page, per_page, objects) :
    """
    Create Pagination objects
    """
    return Pagination(page = page, 

src/m/o/MongoBit-0.2.10/mongobit/base.py   MongoBit(Download)
 
        from flask import request, current_app
        from flask.ext.paginate import Pagination
        if hasattr(current_app, 'y18n'):
            t = current_app.y18n.t
                    args[k] = t(k)
 
        objs.pagination = Pagination(found=objs.count, **args)
        objs.skip = skip
        return objs