OK looking at sqlhtml.py I figured out how to get this to work. I had to also pass the ad_id to args=[ad_id] to keep the ID in the URL. I think there should be a better way like the grid keeping any args that were originally in the URL.
On Tue, Feb 28, 2012 at 11:04 AM, Bruce Wade <[email protected]> wrote: > Original URL: > > http://127.0.0.1:8000/adviewer/ad_rating_details/1749?_signature=6d045f02c7916caa71c27157e52725b601215fb4 > > Notice the ID /1749 > > Page 2 URL: > > http://127.0.0.1:8000/adviewer/ad_rating_details?page=2&_signature=4d3c979026c296d467e5b47b7eed2ca92368a76e > > Notice the ID was removed. Why is the ID being removed from the URL that > completely breaks logic of viewing all data related to a giving ID. Unless > there is another way to accomplish this: > > @auth.requires_login() > @auth.requires_signature() > def ad_rating_details(): > ad_id = request.args(0) > print request > > db.dailyadviews.id.readable = db.dailyadviews.ad_id.readable = > db.dailyadviews.viewer_id.readable = db.dailyadviews.accepted.readable = > False > grid = SQLFORM.grid(db.dailyadviews.ad_id == ad_id, > create=False, editable=False, deletable=False, details=False > ) > return dict(ratings=grid, ad_id=ad_id) > > -- > -- > Regards, > Bruce Wade > http://ca.linkedin.com/in/brucelwade > http://www.wadecybertech.com > http://www.warplydesigned.com > http://www.fitnessfriendsfinder.com > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com

