-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi list,
Using TG-1.0.8, is there a way to use paginate + paginatedatagrid with SQLAchemy data and computed data combined in the controller? Far example, in the controller, SQLAchemy returns data, from which a filename is built, and a test is made to check if file exists. Then the page should display a paginatedatagrid with columns coming from SQLAlchemy, and a custom column displaying a link to download the file if it exists. I naively tried to use the data from SQLAlchemy in the controller, but it is not "paginated" yet, so it goes through the complete data set, which is not acceptable. I also tried to pass a function to the paginate decorator, in the hope that the paginate parameters (offset, limit) would be accessible so I could build the appropriate SQLAchemy request, but the parameters are not passed. What is the tg1 way of doing what I want? Thanks, - -- Jean-Denis Girard SysNux Systèmes Linux en Polynésie française http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27 -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkq1m3AACgkQuu7Rv+oOo/gCTwCfYjaZhEbM3U0t14mr60FQlFvs UGsAnAuHDE9+FKtBJnU0EXPvmhrQkP4+ =OKaC -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

