Hello I am trying to create some pagination on my comments page everything seems to be working, however when I click the next link it goes to a page that all it says is None
Anyone know why this is happening and how to fix it There are entries in the db. Thanks in Advance below is my code *cheers def product_wall(): this_page = request.args(0) product=db(db.product.id == this_page).select(db.product.ALL) for products in product: #comments=db(db.comment.product == this_page).select(db.comment.ALL) comments=db.comment.product == this_page orderby = ~db.comment.id pcache = (cache.ram, 15) stars = StarRatingWidget(single_vote=True) db.comment.rating.widget = stars.widget db.comment.product.default = products.id form = SQLFORM(db.comment) db.comment.product.id = products.id if form.accepts(request.vars,session): response.flash = 'Your Comment has been submitted' paginate = Pagination(db,comments,orderby,display_count=2,cache=pcache,r=request,res=response) rows=paginate.get_set(set_links=True) return dict(comments=rows,form=form,products=products) elif form.errors: response.flash = 'Please correct your error' paginate = Pagination(db,comments,orderby,display_count=2,cache=pcache,r=request,res=response) rows=paginate.get_set(set_links=True) return dict(comments=rows,form=form,products=products) else: paginate = Pagination(db,comments,orderby,display_count=2,cache=pcache,r=request,res=response) rows=paginate.get_set(set_links=True) return dict(comments=rows,form=form,products=products)