Thanks, Gael!  That works!  Any tips for column sorting?

On Jun 14, 11:04 am, Gael Pasgrimaud <[email protected]> wrote:
> On Mon, Jun 14, 2010 at 6:57 PM, [email protected]
>
> <[email protected]> wrote:
> > Can i still use FA with webhelpers.paginate?
>
> Yes, you can. As I remember this should work:
>
> grid = Grid(instances=page)
>
> in template:
>
> page.pager()
> grid.render()
>
> That's what we do in the admin ui:
>
> http://code.google.com/p/formalchemy/source/browse/formalchemy/ext/py...
>
> --
> Gael
>
> >  The book talks about
> > passing the query to paginate and building your own template for
> > display, but I've been typically passing my queries to e.g. fa.Grid
> > and rendering via FA templates.  My concern is that paginate seems to
> > take care of the offset - whereas I think FA would need to receive a
> > resultset that is already constrained by the offset.  Furthermore, I
> > think FA uses its own collection object to generate the rows, whereas
> > paginate probably has a different structure in it's paginator...
>
> > But I still find it odd that FA wouldn't have thought about pagination
> > or know how to "play nice" with paginate.
>
> > Any tips appreciated.
>
> > Thanks.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "pylons-discuss" 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 
> > athttp://groups.google.com/group/pylons-discuss?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to