How do you know it's not working? What behavior are you observing? On Wednesday, April 13, 2011 8:20:25 PM UTC-4, 黄祥 wrote:
> 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 >