yes, i've tried to implement the code from that url.
here is my function :

models/db_functions.py:

def __index(table):
if len(request.args):
 page = int(request.args[0])
else:
page = 0
 items_per_page = 20
limitby = (page * items_per_page, (page + 1) * items_per_page + 1)
 rows = db().select(table.ALL, limitby = limitby, cache = (cache.ram, 60))
return dict(rows = rows, page = page, items_per_page = items_per_page)

and my controller :
controllers/book.py

# coding: utf8

table = db.author

def index():
return __index(table)

please give a suggestion or advice for this?

thank you so much in advance

steve van christie

Reply via email to